Category : msbuild

I’m building an Unreal project through TeamCity and my msbuild step is failing with the following error: error MSB4019: The imported project "C:Microsoft.Cpp.Default.props" was not found. Confirm that the expression in the Import declaration "Microsoft.Cpp.Default.props" is correct, and that the file exists on disk. I have VS 2019 installed and VCTargetsPath set to: C:Program Files ..

Read more

I did try the various methods of adding a <PreBuildEvent> tag <PropertyGroup> <PreBuildEventUseInBuild>true</PreBuildEventUseInBuild> <PreBuildEvent>prep.bat</PreBuildEvent> </PropertyGroup> or <Exec> tag <Target Name="ExtractAssets" BeforeTargets="PrepareForBuild"> <Exec Command="prep.bat"/> </Target> in the project file, but Visual Studio 2022 / MSBuild does not seem to execute it. From the documentation I read it is not even clear if it’s an unsupported scenario ..

Read more

I’m attempting to build a C++ project on a Windows 10 x64 build machine with MSBuild 15.0 and Windows SDK 7.1. However, when I run MSBuild on the project, I get this error: C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppBuild.targets(297,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid ..

Read more

So I started to work with MSBuild, cause it seemed as really good solution for my needs, but there is one particular problem I noticed and I figured workaround, but would like an absolute solution. So problem is following, when I run MSBuild on project, and run it again(without changing anything in project), it removes ..

Read more

How to determine the version of Xamarin.Android & Xamarin.iOS installed in my Windows? On my CI server i have installed only VS Build Tools without VS IDE. The official Microsoft documentation only refers to checking it via Visual Studio, but i don’t have it installed here, so i need to get this information another way. ..

Read more