MSBuild, csproj and props package reference editor.
Перейти к файлу
Wiesław Šoltés e4c20a9a6b Updated Avalonia 2017-11-14 18:10:05 +01:00
build Updated Avalonia 2017-11-14 18:10:05 +01:00
images Updated screenshot 2017-11-14 17:53:31 +01:00
src Set window title 2017-11-14 17:47:04 +01:00
.gitattributes Added .gitattributes & .gitignore files 2017-11-09 19:42:13 +01:00
.gitignore Added .gitattributes & .gitignore files 2017-11-09 19:42:13 +01:00
.travis.yml Update .travis.yml 2017-11-14 12:14:23 +01:00
LICENSE.TXT Create LICENSE.TXT 2017-11-09 22:40:32 +01:00
NuGet.Config Create NuGet.Config 2017-11-14 12:01:51 +01:00
PackageReferenceEditor.sln Update PackageReferenceEditor.sln 2017-11-14 12:22:19 +01:00
README.md Added screenshots 2017-11-14 17:49:47 +01:00
appveyor.yml Update appveyor.yml 2017-11-14 12:19:19 +01:00
circle.yml Update circle.yml 2017-11-14 12:14:41 +01:00

README.md

PackageReferenceEditor

Build status Build Status CircleCI

NuGet

MSBuild, csproj and props package reference editor.

Screenshots

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.