msbuild

MSBuild command line - add dll reference

こ雲淡風輕ζ 提交于 2020-08-23 03:29:53
问题 I use a makefile to compile my C# project. In this makefile, I create a library tools.dll calling csc.exe, OK. Now, I want to use this .dll in my project. For some reasons, I have to use MSBuild.exe which use .csproj file. In .csproj file I added this section : <Reference Include="TOOLS"> <HintPath>C:\Gen\Lib\TOOLS.dll</HintPath> </Reference> That's works fine ! But my question is : How can I add tools.dll reference from MSBuild command line ? I need that, to call MSBuild.exe in makefile and

MSBuild command line - add dll reference

浪子不回头ぞ 提交于 2020-08-23 03:29:29
问题 I use a makefile to compile my C# project. In this makefile, I create a library tools.dll calling csc.exe, OK. Now, I want to use this .dll in my project. For some reasons, I have to use MSBuild.exe which use .csproj file. In .csproj file I added this section : <Reference Include="TOOLS"> <HintPath>C:\Gen\Lib\TOOLS.dll</HintPath> </Reference> That's works fine ! But my question is : How can I add tools.dll reference from MSBuild command line ? I need that, to call MSBuild.exe in makefile and

Copy files from Nuget package to output directory with MsBuild in .csproj and dotnet pack command

雨燕双飞 提交于 2020-08-22 11:41:40
问题 Last time I had to find out how to extract some files from a Nuget package in took me at least 6 months but I finally managed to find the solution. The thing is that, this solution assumes I have a .nupkg file and manually add a .targets file to perform the extraction process. Now, things are different: I don't have any .nupgk file, we generate one automatically on our VSTS server using the dotnet pack command. Then we consume the package from our Nuget server We can't afford to take another