Skip to content

Commit

Permalink
[Build] Generation of TargetFrameworkAttribute can now be suppressed …
Browse files Browse the repository at this point in the history
…with property GenerateTargetFrameworkAttribute
  • Loading branch information
RobertvanderHulst committed Dec 3, 2024
1 parent 6df43e3 commit 2033858
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Copyright (c) XSharp B.V. All Rights Reserved
<SynthesizeLinkMetadata Condition=" '$(SynthesizeLinkMetadata)' == '' and '$(HasSharedItems)' == 'true' ">true</SynthesizeLinkMetadata>
<DefaultProjectTypeGuid Condition=" '$(DefaultProjectTypeGuid)' == '' ">{AA6C8D78-22FF-423A-9C7C-5F2393824E04}</DefaultProjectTypeGuid>
<AppDesignerFolder Condition="'$(AppDesignerFolder)' == ''">Properties</AppDesignerFolder>
<GenerateTargetFrameworkAttribute Condition="$(GenerateTargetFrameworkAttribute)' == ''">true</GenerateTargetFrameworkAttribute>

<!-- Make sure that we have full paths when compiling inside VS -->
<GenerateFullPaths Condition="'$(BuildingInsideVisualStudio)'=='true'">true</GenerateFullPaths>
</PropertyGroup>
Expand Down Expand Up @@ -426,7 +428,7 @@ Copyright (c) XSharp B.V. All Rights Reserved
</Target>

<Target Name="_SetTargetFrameworkMonikerAttribute" BeforeTargets="GenerateTargetFrameworkMonikerAttribute">
<PropertyGroup>
<PropertyGroup Condition="$(GenerateTargetFrameworkAttribute)' == 'true'">
<TargetFrameworkMonikerAssemblyAttributeText Condition="'$(TargetFrameworkMoniker)' != '' and '$(TargetingClr2Framework)' != 'true'">
// &lt;autogenerated /&gt;
using System
Expand Down

0 comments on commit 2033858

Please sign in to comment.