Skip to content

Commit d24f80d

Browse files
author
Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box)
committed
Make DemoConsole multitarget
1 parent 1e3d9d3 commit d24f80d

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DemoConsole/DemoConsole.csproj

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,31 @@
2121
<!-- The files for this project have been removed from the .NET product due to licensing issues. -->
2222
<ExcludeFromDotNetBuild>true</ExcludeFromDotNetBuild>
2323
<IsTestUtilityProject>true</IsTestUtilityProject>
24+
<TargetFrameworks>$(NetCurrent)-windows;net481</TargetFrameworks>
25+
<!-- Unset TargetFramework as this property gets set in Directory.Build.props. This is necessary to avoid over-building. -->
26+
<TargetFramework />
2427
</PropertyGroup>
2528

26-
<ItemGroup>
29+
<ItemGroup Condition="'$(TargetFramework)' == '$(NetCurrent)-windows'">
2730
<PackageReference Include="System.Runtime.Serialization.Formatters" />
2831
</ItemGroup>
2932

3033
<ItemGroup>
34+
<EmbeddedResource Update="Properties\Resources.resx" Generator="ResXFileCodeGenerator" LastGenOutput="Resources.Designer.cs" />
35+
<Compile Update="Properties\Resources.Designer.cs" AutoGen="True" DependentUpon="Resources.resx" DesignTime="True" />
36+
</ItemGroup>
37+
38+
<ItemGroup Condition="'$(TargetFramework)' == '$(NetCurrent)-windows'">
39+
<ProjectReference Include="..\..\..\..\..\System.Design\src\System.Design.Facade.csproj" />
40+
<ProjectReference Include="..\..\..\..\..\System.Drawing.Design\src\System.Drawing.Design.Facade.csproj" />
3141
<ProjectReference Include="..\..\..\..\..\System.Windows.Forms.Design\src\System.Windows.Forms.Design.csproj" />
3242
<ProjectReference Include="..\..\..\..\src\System.Windows.Forms.csproj" />
33-
<ProjectReference Include="..\..\..\..\..\System.Drawing.Common\src\System.Drawing.Common.csproj" />
34-
<ProjectReference Include="..\DesignSurfaceExt\DesignSurfaceExt.csproj" />
3543
</ItemGroup>
3644

37-
<ItemGroup>
38-
<EmbeddedResource Update="Properties\Resources.resx" Generator="ResXFileCodeGenerator" LastGenOutput="Resources.Designer.cs" />
39-
<Compile Update="Properties\Resources.Designer.cs" AutoGen="True" DependentUpon="Resources.resx" DesignTime="True" />
45+
<ItemGroup Condition="'$(TargetFramework)' == 'net481'">
46+
<Reference Include='System.Windows.Forms'/>
47+
<Reference Include='System.Drawing'/>
48+
<Reference Include='System.Design'/>
4049
</ItemGroup>
4150

4251
<ItemGroup>

src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DesignSurfaceExt/DesignSurfaceExt.csproj

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,22 @@
2121
<!-- The files for this project have been removed from the .NET product due to licensing issues. -->
2222
<ExcludeFromDotNetBuild>true</ExcludeFromDotNetBuild>
2323
<IsTestUtilityProject>true</IsTestUtilityProject>
24+
<TargetFrameworks>$(NetCurrent)-windows;net481</TargetFrameworks>
25+
<!-- Unset TargetFramework as this property gets set in Directory.Build.props. This is necessary to avoid over-building. -->
26+
<TargetFramework />
2427
</PropertyGroup>
2528

26-
<ItemGroup>
29+
<ItemGroup Condition="'$(TargetFramework)' == '$(NetCurrent)-windows'">
2730
<ProjectReference Include="..\..\..\..\..\System.Design\src\System.Design.Facade.csproj" />
2831
<ProjectReference Include="..\..\..\..\..\System.Drawing.Design\src\System.Drawing.Design.Facade.csproj" />
2932
<ProjectReference Include="..\..\..\..\..\System.Windows.Forms.Design\src\System.Windows.Forms.Design.csproj" />
3033
<ProjectReference Include="..\..\..\..\src\System.Windows.Forms.csproj" />
3134
</ItemGroup>
3235

36+
<ItemGroup Condition="'$(TargetFramework)' == 'net481'">
37+
<Reference Include='System.Windows.Forms'/>
38+
<Reference Include='System.Drawing'/>
39+
<Reference Include='System.Design'/>
40+
</ItemGroup>
41+
3342
</Project>

0 commit comments

Comments
 (0)