Open satishviswanathan opened 5 years ago
See https://github.com/RicoSuter/NSwag/wiki/SDK-Development
Please ping me when there are open questions
I modified NSwag.ConsoleCore project and set the arguments to point to the location where I have my .nswag file.
When I build the solution I'm getting the following error. Not sure what i'm missing.
6>C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets(779,5): error MSB3073: The command "rmdir "../../../../src/NSwagStudio/bin/Debug/Win" /Q /S nonemptydir 46>rmdir "../../../../src/NSwagStudio/bin/Debug/NetCore10" /Q /S nonemptydir 46>rmdir "../../../../src/NSwagStudio/bin/Debug/NetCore11" /Q /S nonemptydir 46>rmdir "../../../../src/NSwagStudio/bin/Debug/NetCore20" /Q /S nonemptydir 46>rmdir "../../../../src/NSwagStudio/bin/Debug/NetCore21" /Q /S nonemptydir 46>rmdir "../../../../src/NSwagStudio/bin/Debug/NetCore22" /Q /S nonemptydir 46> 46>dotnet restore "../../../../src/NSwag.ConsoleCore" --no-cache 46> 46>dotnet publish "../../../../src/NSwag.ConsoleCore" -c Debug -f "netcoreapp1.0" -o "bin/Debug/netcoreapp1.0/Publish" /property:Platform=AnyCPU 46>dotnet publish "../../../../src/NSwag.ConsoleCore" -c Debug -f "netcoreapp1.1" -o "bin/Debug/netcoreapp1.1/Publish" /property:Platform=AnyCPU 46>dotnet publish "../../../../src/NSwag.ConsoleCore" -c Debug -f "netcoreapp2.0" -o "bin/Debug/netcoreapp2.0/Publish" /property:Platform=AnyCPU 46>dotnet publish "../../../../src/NSwag.ConsoleCore" -c Debug -f "netcoreapp2.1" -o "bin/Debug/netcoreapp2.1/Publish" /property:Platform=AnyCPU 46>dotnet publish "../../../../src/NSwag.ConsoleCore" -c Debug -f "netcoreapp2.2" -o "bin/Debug/netcoreapp2.2/Publish" /property:Platform=AnyCPU 46> 46>xcopy "../../../../src/NSwag.Console.x86/bin/Debug/net461" "../../../../src/NSwagStudio/bin/Debug/Win" /E /I /y 46>xcopy "../../../../src/NSwag.Console/bin/Debug/net461" "../../../../src/NSwagStudio/bin/Debug/Win" /E /I /y 46> 46>xcopy "../../../../src/NSwag.ConsoleCore/bin/Debug/netcoreapp1.0/publish" "../../../../src/NSwagStudio/bin/Debug/NetCore10" /E /I /y 46>xcopy "../../../../src/NSwag.ConsoleCore/bin/Debug/netcoreapp1.1/publish" "../../../../src/NSwagStudio/bin/Debug/NetCore11" /E /I /y 46>xcopy "../../../../src/NSwag.ConsoleCore/bin/Debug/netcoreapp2.0/publish" "../../../../src/NSwagStudio/bin/Debug/NetCore20" /E /I /y 46>xcopy "../../../../src/NSwag.ConsoleCore/bin/Debug/netcoreapp2.1/publish" "../../../../src/NSwagStudio/bin/Debug/NetCore21" /E /I /y 46>xcopy "../../../../src/NSwag.ConsoleCore/bin/Debug/netcoreapp2.2/publish" "../../../../src/NSwagStudio/bin/Debug/NetCore22" /E /I /y" exited with code 4. 46>Done building project "NSwagStudio.Installer.wixproj" -- FAILED. 46> 46>Build FAILED.
If you only want to test NSwag.ConsoleCore then use NSwag.Min.sln way easier to build :-)
With the changes I mentioned, I was trying to prepare the msi using the NSwagStudio.Installer proj. But when I build that project I'm getting this error.
Did you install the wix sdk?
Yes after installing wix the installer project got loaded and when I build the installer project I'm getting this error.
Do you have .net core sdk 2.2 installed?
Yes I do have .Net core 2.2 installed
Try running build/01_build.bat in a vs cmd line shell, hopefully you have more info there..
Ah it’s really bad supporting all these frameworks.. 🙂
yeah totally agree :)
I ran 01_build.bat, sharing the log file.
My Bad, I didn't run the bat file from VS command prompt. Sharing the correct log.
I have the latest source code downloaded and trying to build the solution but I'm getting some errors. If you have any guidelines around this , then would you be able to share them.