Rick Nijhuis
Rick Nijhuis

Reputation: 446

How to build a given csproj only on specified platform

I'm working on a project that generates bindings for a cross platform c library. The bindings are automatically generated for a specific platform. In my solution I have 3 projects.

How can I prevent the Linux and MacOs csproj from building when on windows.

Upvotes: 0

Views: 37

Answers (1)

shingo
shingo

Reputation: 27021

You can set which projects need to be built at any place below:

  • The solution properties window > Configuration Properties
  • The build menu > Configuration Manager...

Upvotes: 0

Related Questions