Bokep
- Viewed 18k times29edited Oct 2, 2018 at 0:28
The thing you need to set is /p:DefineConstants=MAC note this will override constants set in the project like DEBUG or TRACE that may be set so the full version you would likely use would be
for a debug build
dotnet msbuild /p:DefineConstants=TRACE;DEBUG;NETCOREAPP1_1;MAC /p:Configuration=Debugand for a release build
dotnet msbuild /p:DefineConstants=TRACE;NETCOREAPP1_1;MAC /p:Configuration=ReleaseAn easier solution would create a configuration called Mac and in your csproj have
<PropertyGroup Condition="'$(Configuration)'=='Mac'">Content Under CC-BY-SA license WEBMar 29, 2019 · Preprocessor Directives in C# tell the compiler to process the given information before actual compilation of the program starts. It …
- Estimated Reading Time: 2 mins
WEBAug 6, 2020 · In this post, we’ll walk through the basics of C# preprocessor directives. We’ll use keywords like define, if, else, elif, and undef to change our application’s behavior. We’ll also look at some of the …
- People also ask
C# Preprocessor Directives - C# Corner
Using C# Preprocessor Directives For Conditional Compiling
Preprocessor Directives in C# [Types and Uses with Example]
Exploring the Role of Preprocessor Directives C# - C# Corner
C# Language Preprocessor Directives - C# Corner
c# - Preprocessor directives in Razor - Stack Overflow
Preprocessor directive in C# for importing based on platform
C# Preprocessor Directives - C# Corner
Platform Conditional Compilation in .NET Core | Magnus Montin
#if preprocessor directive for directives other than DEBUG
.net - Custom preprocessor directive in C# - Stack Overflow
- Some results have been removed
Was the above response helpful?