Open e4rthdog opened 4 years ago
This batch script ist part of the post build event in the project file. You have to edit it and correct the pathes for sdk etc.
e.g The Windows 10 netfx sdk folder would be: set sdk=%PROGRAMFILES(x86)%\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools
Furthermore you can change the inlineILCompiler and cscli path by using $(ProjectDir) instead of SolutionDir, and $(OutDir) instead of the bin\$(ConfigurationName), because netCore3.1 has another output directory e.g.: set inlineILCompiler=$(ProjectDir)..\Tools\InlineILCompiler\$(OutDir)InlineILCompiler.exe set cscli=$(ProjectDir)..\Tools\CSCli\$(OutDir)CSCli.exe
This fixes it for me.
I retargeted to 4.7.2 in order to be more recent and use CSCORE in a .NET Core 3.1 application that i am building.
I cant compile cause the post-build event returns -1:
On a Windows 10 2004 machine.
`@echo off & setLocal EnableDELAYedeXpansion chcp 65001
`