MSBuild, csproj and props package reference editor.
Перейти к файлу
Wiesław Šoltés 6c1159834a
Update .travis.yml
2017-11-14 09:34:03 +01:00
src Update and rename src/MSBuildPropsUpdater.WPF/MainWindow.xaml.cs to src/PackageReferenceEditor.WPF/MainWindow.xaml.cs 2017-11-14 09:13:07 +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 09:34:03 +01:00
LICENSE.TXT Create LICENSE.TXT 2017-11-09 22:40:32 +01:00
PackageReferenceEditor.sln Update and rename MSBuildPropsUpdater.sln to PackageReferenceEditor.sln 2017-11-14 09:05:30 +01:00
README.md Update README.md 2017-11-14 09:32:56 +01:00
appveyor.yml Update appveyor.yml 2017-11-14 09:04:50 +01:00
circle.yml Update circle.yml 2017-11-14 09:04:59 +01:00

README.md

PackageReferenceEditor

Build status Build Status CircleCI

NuGet

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.