File tree Expand file tree Collapse file tree 2 files changed +23
-16
lines changed
packaging/Microsoft.NET.Sdk.WindowsDesktop Expand file tree Collapse file tree 2 files changed +23
-16
lines changed Original file line number Diff line number Diff line change
1
+ <Project >
2
+
3
+ <!--
4
+ This target *only* validates the content of Microsoft.Private.Winforms NuGet package
5
+ to ensure we correctly import and reference props and targets.
6
+ -->
7
+ <Target Name =" _EnsureWindowsFormsPackagingContent" BeforeTargets =" IdentifyPackageAssets" >
8
+ <Error Text =" Unable to resolve path to Microsoft.Private.Winforms NuGet package. Is %24(PkgMicrosoft_Private_Winforms) defined?"
9
+ Condition =" '$(_WinFormsNuGetPath)' == ''" />
10
+
11
+ <ItemGroup >
12
+ <_WinFormsContent Include =" $(_WinFormsContentPath)" />
13
+ </ItemGroup >
14
+
15
+ <Error Text =" Microsoft.Private.Winforms NuGet package contains no content. Is this expected?"
16
+ Condition =" @(_WinFormsContent->Count()) == 0" />
17
+ </Target >
18
+
19
+ </Project >
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
+
2
3
<PropertyGroup >
3
4
<ProjectGuid >{440d06b8-e3de-4c0d-ad25-cd4f43d836e1}</ProjectGuid >
4
5
<TargetFramework >net6.0</TargetFramework >
27
28
</ItemGroup >
28
29
29
30
<!-- Windows Forms specific -->
31
+ <Import Project =" $(RepositoryEngineeringDir)WindowsForms.targets" />
32
+
30
33
<PropertyGroup >
31
34
<_WinFormsNuGetPath >$(PkgMicrosoft_Private_Winforms)</_WinFormsNuGetPath >
32
35
<_WinFormsContentPath >$(_WinFormsNuGetPath)\sdk\dotnet-wpf\*</_WinFormsContentPath >
36
39
<PackagingContent Include =" $(_WinFormsContentPath)" SubFolder =" root\targets" />
37
40
</ItemGroup >
38
41
39
- <!--
40
- This target *only* validates the content of Microsoft.Private.Winforms NuGet package
41
- to ensure we correctly import and reference props and targets.
42
- -->
43
- <Target Name =" _EnsureWindowsFormsPackagingContent" BeforeTargets =" IdentifyPackageAssets" >
44
- <Error Text =" Unable to resolve path to Microsoft.Private.Winforms NuGet package. Is %24(PkgMicrosoft_Private_Winforms) defined?"
45
- Condition =" '$(_WinFormsNuGetPath)' == ''" />
46
-
47
- <ItemGroup >
48
- <_WinFormsContent Include =" $(_WinFormsContentPath)" />
49
- </ItemGroup >
50
-
51
- <Error Text =" Microsoft.Private.Winforms NuGet package contains no content. Is this expected?"
52
- Condition =" @(_WinFormsContent->Count()) == 0" />
53
- </Target >
54
42
</Project >
You can’t perform that action at this time.
0 commit comments