Closed melsawy93 closed 1 year ago
Hey, is it okay to post the contents of your csproj file?
Yes sure.
`<?xml version="1.0" encoding="utf-8"?>
Can it be due to my project being a .NET Framework not a .NET Core project?
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