msbuild

Build visual studio C++ project within solution for multiple platforms

你离开我真会死。 提交于 2021-02-17 06:43:45
问题 I have a Visual Studio solution that contains multiple C# projects and a C++ project. The C++ project is properly configured to build both for x64 and win32 (has separate output directories, proper binaries referred for 32 and 64 and so on) and default configuration is x64. C# projects are configured for Any CPU. How can I configure my solution to build the C++ project for both x64 and win32 when building the entire solution? P.S.: Batch build won't do the job for this case because I need to

Build visual studio C++ project within solution for multiple platforms

做~自己de王妃 提交于 2021-02-17 06:43:10
问题 I have a Visual Studio solution that contains multiple C# projects and a C++ project. The C++ project is properly configured to build both for x64 and win32 (has separate output directories, proper binaries referred for 32 and 64 and so on) and default configuration is x64. C# projects are configured for Any CPU. How can I configure my solution to build the C++ project for both x64 and win32 when building the entire solution? P.S.: Batch build won't do the job for this case because I need to

Roslyn – custom build error extension

半世苍凉 提交于 2021-02-17 06:21:27
问题 Is currently a way to extend Roslyn compilation and add some custom rule set that will break a build and show in ErrorList of VisualStudio? I search StackOverflow but there is no answer that works - maybe recently something came up in this topic or maybe there is other way to do this without roslyn? 回答1: Roslyn – custom build error extension Just like Slaks and JoshVarty said, this is an analyzer feature. To create your custom Roslyn analyzer rule, you can check this MS tutorial: C# and

How to specify File Version when building EXE using MSBuild?

为君一笑 提交于 2021-02-16 15:15:08
问题 I'm trying to compile an EXE using MSBuild / Delphi 2010, I tried this: MSBuild.exe /t:Clean;Build /p:config=Release;ExtraDefines="CodeTest" /property:FileVersion=1.0.0.15 "D:\MyProject\MyFile.dproj" File is built but version isn't set What's wrong anyway? 回答1: Your property "FileVersion" is available inside the MSBuild session, but unless you have a Task or Target that uses it somehow, it's not being used for anything. You'll either need to (as DHeffernan says) create a version resource that

VSTS Build not generating latest bin binaries

孤街浪徒 提交于 2021-02-15 07:50:18
问题 I am using TFS 2018 CI pipeline for MVC project, also I added the project's bin files into the TFS, there is no problem with the pipeline, its getting succeeded and artifact is generated successfully but the main problem is that if I made any changes in code related to project's DLL, the CI pipeline's build solution not generating its own latest bin file Until or unless I manually check Out the project.dll file and than check In the file than pipeline will pick the changes, what I am missing,

Pre-Processing C++ file using MSBuild and Visual Studio 2012+

南楼画角 提交于 2021-02-11 14:40:23
问题 I have a series of standard cpp files and each of these files contain a file-specific #include statement. However, the content of those included files must be populated by a pre-processing tool prior to invoking the standard C++ compiler. The tricky part is that I want this to be fully integrated into Visual Studio using MSBuild. Therefore, when I bring up Visual Studio's Property Window on a cpp file, I want to see all the standard C++ compiler options and, ideally, some Custom Properties

Wix Installer won't build on buildserver

僤鯓⒐⒋嵵緔 提交于 2021-02-11 14:25:10
问题 I have tried to build a Wix MSI using our build server. I have set the build configuration in the Configuration manager to DEBUG/x86. All the other projects build correctly EXCEPT for the Wix Installer. Initially there was an error requesting the latest version of WIX was installed on the build server "The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" so I follwed this - https://subscription

MSB4044: The “KillProcess” task was not given a value for the required parameter “ImagePath”

最后都变了- 提交于 2021-02-11 14:18:40
问题 Long story short, I was able to build a bitbucket .NET/MVC/Angular project successfully on windows 2019 azure hosted agent, but I am unable to make it build successfully on ubuntu agent. The reason I want to build it on ubuntu is because I noticed the build time is way faster than that of the windows agent, which makes sense considering the platforms. I am facing this error: Copying file from "/home/vsts/work/1/s/Bobby.ProjectA/obj/Debug/Bobby.ProjectA.pdb" to "/home/vsts/work/1/s/Bobby

.net core project dependencies - yellow triangle

故事扮演 提交于 2021-02-10 06:47:39
问题 My .Net Core project has a yellow triangle on dependencies, but when I open it up, none of the child entries have a yellow triangle. When I hover over dependencies, I don't see any tooltip telling me what's wrong. How can I check to see what is causing this yellow triangle to show up? I did what @oandreeeee suggested and increased the log level of my build and I noticed this: C:\Program Files\dotnet\sdk\2.2.104\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ConflictResolution.targets(41,5):