Can files be nested in VS2017 Solution Explorer for .NET Core (non-ASP.NET Core) projects?

I have it working in one of my Microsoft.NET.Sdk-style projects using something similar to the following: <ItemGroup> <Compile Update=”LocalDateTest.*.cs”> <DependentUpon>LocalDateTest.cs</DependentUpon> </Compile> </ItemGroup> The trick here is to use Update instead of Include. This is because the implicit items are coming from a props file that is imported before the main project. An additional Include won’t … Read more

The OutputPath property is not set for project

I have figured out how it works (without changing sln/csproj properties in VS2013/2015). if you want to build .sln file: /p:ConfigurationPlatforms=Release /p:Platform=”Any CPU” if you want to build .csproj file: /p:Configuration=Release /p:Platform=AnyCPU notice the “Any CPU” vs AnyCPU check the code analysis, fxcop, test coverage(NCover) targets, as well as the MSBUILD should be located properly. … Read more

msbuild.exe staying open, locking files

Use msbuild with /nr:false. Briefly: MSBuild tries to do lots of things to be fast, especially with parallel builds. It will spawn lots of “nodes” – individual msbuild.exe processes that can compile projects, and since processes take a little time to spin up, after the build is done, these processes hang around (by default, for … Read more

Why does MSBuild look in C:\ for Microsoft.Cpp.Default.props instead of c:\Program Files (x86)\MSBuild? ( error MSB4019)

I got this problem when publishing a cocos2d-x application using their command line tool, which calls MSBuild. I’m using Win 7 64-bit, VS2013 express, cocos2d-x version 3.3, .NET Framework 4.5 installed. I fixed the problem by setting the following before running the cocos.py publish command: SET VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120

List of MSBuild built-in variables

Comprehensive lists from Microsoft Docs (New Docs): Common macros for MSBuild commands and properties MSBuild reference for .NET SDK projects Comprehensive lists from MSDN (Legacy Docs): MSBuild reserved properties Common MSBuild properties Macros for Build Commands and Properties Other useful lists: Well-known item metadata MSBuild special characters First link shows the MSBuild property for project … Read more

How do I specify the platform for MSBuild?

In MSBuild or Teamcity use command line MSBuild yourproject.sln /property:Configuration=Release /property:Platform=x64 or use shorter form: MSBuild yourproject.sln /p:Configuration=Release /p:Platform=x64 However you need to set up platform in your project anyway, see the answer by Julien Hoarau.

How can I install the VS2017 version of msbuild on a build server without installing the IDE?

The Visual Studio Build tools are a different download than the IDE. They appear to be a pretty small subset, and they’re called Build Tools for Visual Studio 2019 (download). You can use the GUI to do the installation, or you can script the installation of msbuild: vs_buildtools.exe –add Microsoft.VisualStudio.Workload.MSBuildTools –quiet Microsoft.VisualStudio.Workload.MSBuildTools is a “wrapper” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)