Skip to content

Commit 7c61d09

Browse files
committed
Remove projects that are not required to be packed
Override projects with an empty Pack target that are not packed into packages. This will prevent any any packages being accidentally produced.
1 parent 54ffaf9 commit 7c61d09

File tree

13 files changed

+29
-13
lines changed

13 files changed

+29
-13
lines changed

Directory.Build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
<GenerateDocumentationFile>true</GenerateDocumentationFile>
3232
</PropertyGroup>
3333
</When>
34+
<Otherwise>
35+
<PropertyGroup>
36+
<IsPackable>false</IsPackable>
37+
</PropertyGroup>
38+
</Otherwise>
3439
</Choose>
3540

3641
<Choose>

GazeInputTest/GazeInputTest.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,6 @@
162162
<VisualStudioVersion>14.0</VisualStudioVersion>
163163
</PropertyGroup>
164164
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
165+
<!-- No-op to avoid build error when packing solution from commandline -->
166+
<Target Name="Pack" />
165167
</Project>

Microsoft.Toolkit.Uwp.SampleApp/Microsoft.Toolkit.Uwp.SampleApp.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,4 +1536,6 @@
15361536
<Message Text="CSFiles: @(GeneratedCSFiles->'&quot;%(Identity)&quot;')" />
15371537
<Exec Command="for %%f in (@(GeneratedCSFiles->'&quot;%(Identity)&quot;')) do echo #pragma warning disable &gt; %%f.temp &amp;&amp; type %%f | findstr /v /b &quot;#pragma&quot; &gt;&gt; %%f.temp &amp;&amp; move /y %%f.temp %%f &gt; NUL" />
15381538
</Target>
1539+
<!-- No-op to avoid build error when packing solution from commandline -->
1540+
<Target Name="Pack" />
15391541
</Project>

Microsoft.Toolkit.Uwp.Samples.BackgroundTasks/Microsoft.Toolkit.Uwp.Samples.BackgroundTasks.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@
145145
<ErrorReport>prompt</ErrorReport>
146146
</PropertyGroup>
147147
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
148-
<Target Name="Pack">
149-
<!-- No-op to avoid build error when packing solution from commandline -->
150-
</Target>
148+
<!-- No-op to avoid build error when packing solution from commandline -->
149+
<Target Name="Pack" />
151150
</Project>

Microsoft.Toolkit.Win32.WpfCore.SampleApp.PackagingProject/Microsoft.Toolkit.Win32.WpfCore.SampleApp.PackagingProject.wapproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,6 @@
7676
</ProjectReference>
7777
</ItemGroup>
7878
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
79+
<!-- No-op to avoid build error when packing solution from commandline -->
80+
<Target Name="Pack" />
7981
</Project>

SmokeTests/SmokeTest.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,6 @@
129129
<Error Condition="'@(ToolkitNuGet)' == '' and $(CurrentProject) != 'UWPBaseline' and '$(CurrentProject)' != 'UWPBaselineWinUI'" Text="NuGet '$(CurrentProject).[SEMVER].nupkg' doesn't exist!" />
130130
<Error Condition="'$(CurrentProject)' != 'UWPBaseline' and '$(CurrentProject)' != 'UWPBaselineWinUI' and '$(NuGetPackageVersion)' == 'To Fill In With Local Version Number'" Text="Please set 'NuGetPackageVersion' at the top of 'SmokeTest.csproj' with the version to smoke test locally." />
131131
</Target>
132+
<!-- No-op to avoid build error when packing solution from commandline -->
133+
<Target Name="Pack" />
132134
</Project>

UITests/UITests.App/UITests.App.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
2929
<IsTestHost>true</IsTestHost>
3030
</PropertyGroup>
31-
<Target Name="Pack">
32-
</Target>
3331
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
3432
<DebugSymbols>true</DebugSymbols>
3533
<OutputPath>bin\x86\Debug\</OutputPath>
@@ -243,4 +241,6 @@
243241
</PropertyGroup>
244242
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
245243
<Import Project="..\UITests.Tests.Shared\UITests.Tests.Shared.projitems" Label="Shared" />
244+
<!-- No-op to avoid build error when packing solution from commandline -->
245+
<Target Name="Pack" />
246246
</Project>

UnitTests/UnitTests.HighPerformance.UWP/UnitTests.HighPerformance.UWP.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2121
<LangVersion>8.0</LangVersion>
2222
</PropertyGroup>
23-
<Target Name="Pack">
24-
</Target>
2523
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
2624
<DebugSymbols>true</DebugSymbols>
2725
<OutputPath>bin\x86\Debug\</OutputPath>
@@ -173,4 +171,6 @@
173171
<VisualStudioVersion>14.0</VisualStudioVersion>
174172
</PropertyGroup>
175173
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
174+
<!-- No-op to avoid build error when packing solution from commandline -->
175+
<Target Name="Pack" />
176176
</Project>

UnitTests/UnitTests.Notifications.UWP/UnitTests.Notifications.UWP.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
<UnitTestPlatformVersion Condition="'$(UnitTestPlatformVersion)' == ''">$(VisualStudioVersion)</UnitTestPlatformVersion>
1919
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled>
2020
</PropertyGroup>
21-
<Target Name="Pack">
22-
</Target>
2321
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
2422
<DebugSymbols>true</DebugSymbols>
2523
<OutputPath>bin\x86\Debug\</OutputPath>
@@ -179,4 +177,6 @@
179177
<VisualStudioVersion>14.0</VisualStudioVersion>
180178
</PropertyGroup>
181179
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
180+
<!-- No-op to avoid build error when packing solution from commandline -->
181+
<Target Name="Pack" />
182182
</Project>

UnitTests/UnitTests.Notifications.WinRT/UnitTests.Notifications.WinRT.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
<UnitTestPlatformVersion Condition="'$(UnitTestPlatformVersion)' == ''">$(VisualStudioVersion)</UnitTestPlatformVersion>
1919
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled>
2020
</PropertyGroup>
21-
<Target Name="Pack">
22-
</Target>
2321
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
2422
<DebugSymbols>true</DebugSymbols>
2523
<OutputPath>bin\x86\Debug\</OutputPath>
@@ -178,4 +176,6 @@
178176
</Reference>
179177
</ItemGroup>
180178
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
179+
<!-- No-op to avoid build error when packing solution from commandline -->
180+
<Target Name="Pack" />
181181
</Project>

0 commit comments

Comments
 (0)