6c1159834a | ||
---|---|---|
src | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
LICENSE.TXT | ||
PackageReferenceEditor.sln | ||
README.md | ||
appveyor.yml | ||
circle.yml |
README.md
PackageReferenceEditor
MSBuild, csproj and props package reference editor.
NuGet
PackageReferenceEditor is delivered as a NuGet package.
You can find the packages here NuGet and install the package like this:
Install-Package PackageReferenceEditor
NuGet Packages
Package Sources
Example Usage with Cake build scripts
Same code can be used in C# programs by removing #addin
directive and installing package from NuGet.
Print package versions
#addin "nuget:?package=PackageReferenceEditor&version=0.0.1"
using PackageReferenceEditor;
var result = Updater.FindReferences(@"C:\GitHub\", "*.props", new string[] { });
result.PrintVersions();
Validate package versions
#addin "nuget:?package=PackageReferenceEditor&version=0.0.1"
using PackageReferenceEditor;
var result = Updater.FindReferences(@"C:\GitHub\", "*.props", new string[] { });
result.ValidateVersions();
Update package version
#addin "nuget:?package=PackageReferenceEditor&version=0.0.1"
using PackageReferenceEditor;
var result = Updater.FindReferences(@"C:\GitHub\", "*.props", new string[] { });
result.UpdateVersions("Newtonsoft.Json", "10.0.3");
Resources
License
PackageReferenceEditor is licensed under the MIT license.