Excluding a visual studio project from compilation for TeamCity - visual-studio

I'm using TeamCity build server, but one of my projects is a WiX project, I don't need TeamCity to compile it. I tried to exclude the project from visual studio Configuration Manager, and the project is excluded from build in Visual Studio, but TeamCity keeps trying to build that project.
Anybody knows why is this happening?

Related

When to build or rebuild an SSIS project in visual studio?

is it necessary to build or rebuild an SSIS project in visual studio?
As far as i can tell, i can create a project, add packages and deploy them without doing a build or rebuild.
Building an SSIS project creates an artifact *.ispac file. The *.ispac file is used to deploy SSIS packages.
More documentation here https://learn.microsoft.com/en-us/sql/integration-services/packages/deploy-integration-services-ssis-projects-and-packages?view=sql-server-ver15

.netstandard2.1, AndroidQ and TFS build

I have updated my Android app target from Android 9 to Android 10 (in accordance with Google Play requirements) recently, and now solution doesn't build on TFS with error:
C:\Program Files\dotnet\sdk\5.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(241,5): Error NETSDK1005: Assets file '...\obj\project.assets.json' doesn't have a target for 'netstandard2.1'. Ensure that restore has run and that you have included 'netstandard2.1' in the TargetFrameworks for your project.
There is the library in the solution that really targets to netstandard2.1, but:
I can build the solution on my desktop with Visual Studio Community 2019 16.4.6.
I can build the solution on TFS server remotely with Visual Studio Community 2019 16.5.1 and 16.8.2.
I cannot build the solution on TFS server via TFS interface. In the build pipeline there is an item Build Xamarin.Android Project which uses MSBuild from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin location (I presume VS should use this MSBuild file too during manual build). The MSBuild file has version 16.8.2.56705.
With the target Android 9 there was no issues with solution building.
What could be a reason? Thank you in advance.
I followed this recommendation to update nuget.exe to the latest version and it helps. But I'm still wondering why simple target's updating without VS update broke a build.

Visual Studio Build error Project file does not exist

I have a build definition setup to deploy my Visual Studio project to Azure. This has been working for over a year now but suddenly I am getting this error. MSBUILD : error MSB1009: Project file does not exist.
I am selecting the solution file as the solution target for the Visual Studio build task. I have also tried selecting different visual studio versions but they all fail.
This appears to be happening across all the projects. I have web api and SQL projects. None of the build definitions are working anymore. All are throwing the project file does not exists error.

TeamCity doesn't compile the Visual Studio MS Test Project

I have several MS Test project in my solution, but in build server (TeamCity 7.1), I can't compile them. the exception is saying ...'VisualStudio' namesapce does not exist...
I copied the VisualStudio Tools into the Build server GAC, but still no luck!
The problem is in your test projects. you're referencing to some assemblies which haven't been deployed to the Build Server(TeamCity). Also you cannot do that by simply copy and paste to GAC or working directory.
The best and easiest way to do that is installing Visual studio 2010 Agents in the build server.
It's free and it can be downloaded from MS web site. By installing the agents, it will install all the required libraries for compiling and even running the MSTest projects.

Visual Studio 2010 Deployment Project supported by MSBuild

Do you know if there is anyway to deploy a VS2010 Deployment Project using msbuild? Is is supported? I know it was not for a long while but I couldn't find is something change.
If not, is WIX the only approach?
You can build a deploy project - i assume you mean a vdproj? But not directly with msbuild. You have to wrap an exec target around devenv.exe. So you'd have to have visual studio on your build machine.

Resources