RicoSuter / NSwag

The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
http://NSwag.org
MIT License
6.67k stars 1.23k forks source link

Nswag build #2233

Open satishviswanathan opened 5 years ago

satishviswanathan commented 5 years ago

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.

RicoSuter commented 5 years ago

See https://github.com/RicoSuter/NSwag/wiki/SDK-Development

Please ping me when there are open questions

satishviswanathan commented 5 years ago

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.

RicoSuter commented 5 years ago

If you only want to test NSwag.ConsoleCore then use NSwag.Min.sln way easier to build :-)

satishviswanathan commented 5 years ago

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.

RicoSuter commented 5 years ago

Did you install the wix sdk?

satishviswanathan commented 5 years ago

Yes after installing wix the installer project got loaded and when I build the installer project I'm getting this error.

RicoSuter commented 5 years ago

Do you have .net core sdk 2.2 installed?

satishviswanathan commented 5 years ago

Yes I do have .Net core 2.2 installed

RicoSuter commented 5 years ago

Try running build/01_build.bat in a vs cmd line shell, hopefully you have more info there..

RicoSuter commented 5 years ago

Ah it’s really bad supporting all these frameworks.. 🙂

satishviswanathan commented 5 years ago

yeah totally agree :)

satishviswanathan commented 5 years ago

I ran 01_build.bat, sharing the log file.

nswag_log.txt

satishviswanathan commented 5 years ago

My Bad, I didn't run the bat file from VS command prompt. Sharing the correct log.

nswag_log.txt