novotnyllc / MSBuildSdkExtras

Extra properties for MSBuild SDK projects
MIT License
348 stars 42 forks source link

Is it possible to build a different output for the same TargetFramework #295

Open richaplinvs opened 2 years ago

richaplinvs commented 2 years ago

I am trying to build two dlls using the same TFM. I have multiple TFMs <TargetFrameworks>Xamarin.iOS10;MonoAndroid10.0</TargetFrameworks> and conditional compilations for the source files <ItemGroup Condition=" $(TargetFramework.StartsWith('MonoAndroid')) ">.

However I want to be able to generate two different .dlls for MonoAndroid and can't see how to do this without replicating the csproj file with a specific name.

Is there a simpler way?