-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when running #25
Comments
Hey, is it okay to post the contents of your csproj file? |
Yes sure.
|
Can it be due to my project being a .NET Framework not a .NET Core project? |
I'm afraid so yeah, this tool is meant for .NET Core/.NET 5+, it doesn't support .NET Framework. |
Hi, I just discovered this, is this still working? I am trying to run this and getting this:
C:\Users\moustafa.el-sawy\OneDrive\Plugins\Combinito\Combinito>setversion 1.1.1 Combinito.csproj
Unhandled exception. System.InvalidOperationException: This operation would create an incorrectly structured document.
at System.Xml.Linq.XDocument.ValidateDocument(XNode previous, XmlNodeType allowBefore, XmlNodeType allowAfter)
at System.Xml.Linq.XDocument.ValidateNode(XNode node, XNode previous)
at System.Xml.Linq.XContainer.AddNodeSkipNotify(XNode n)
at System.Xml.Linq.XContainer.AddContentSkipNotify(Object content)
at System.Xml.Linq.XContainer.Add(Object content)
at dotnet_setversion.Extensions.GetOrCreateElement(XContainer container, String name) in C:\projects\dotnet-setversion\src\dotnet-setversion\Program.cs:line 187
at dotnet_setversion.Program.SetVersion(String version, String csprojFile) in C:\projects\dotnet-setversion\src\dotnet-setversion\Program.cs:line 150
at dotnet_setversion.Program.Run(String version, String csprojFile) in C:\projects\dotnet-setversion\src\dotnet-setversion\Program.cs:line 58
at dotnet_setversion.Program.Run(Options options) in C:\projects\dotnet-setversion\src\dotnet-setversion\Program.cs:line 32
at CommandLine.ParserResultExtensions.MapResult[TSource,TResult](ParserResult
1 result, Func
2 parsedFunc, Func`2 notParsedFunc)at dotnet_setversion.Program.Main(String[] args) in C:\projects\dotnet-setversion\src\dotnet-setversion\Program.cs:line 18
The text was updated successfully, but these errors were encountered: