-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use Central Package Management and update packages
- Loading branch information
Showing
9 changed files
with
100 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,37 @@ | ||
<Project> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage> | ||
<IsBuildingWpfTempProj Condition="$(MSBuildProjectName.Contains('_wpftmp')) != 'true'">false</IsBuildingWpfTempProj> | ||
<IsBuildingWpfTempProj Condition="$(MSBuildProjectName.Contains('_wpftmp')) == 'true'">true</IsBuildingWpfTempProj> | ||
</PropertyGroup> | ||
|
||
<!-- Project properties --> | ||
<PropertyGroup> | ||
<TargetFrameworks>net462;net47;net48;net5.0-windows;net6.0-windows</TargetFrameworks> | ||
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath> | ||
<GenerateDocumentationFile>false</GenerateDocumentationFile> | ||
<AutoGenerateBindingRedirects Condition=" $(TargetFramework.StartsWith('net4')) ">true</AutoGenerateBindingRedirects> | ||
<LangVersion>9</LangVersion> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<AutoGenerateBindingRedirects Condition="$(DefineConstants.Contains(NETCOREAPP)) == false">true</AutoGenerateBindingRedirects> | ||
<LangVersion>latestmajor</LangVersion> | ||
<NoWarn>$(NoWarn);CS1591</NoWarn> | ||
<NoError>$(NoError);CS1591</NoError> | ||
<UseWPF>true</UseWPF> | ||
<!-- <TreatWarningsAsErrors>true</TreatWarningsAsErrors> --> | ||
<!-- <Nullable>enable</Nullable> --> | ||
</PropertyGroup> | ||
|
||
<!-- Add the references for all projects and targets --> | ||
<ItemGroup> | ||
<PackageReference Include="JetBrains.Annotations" PrivateAssets="All" IncludeAssets="build;compile" /> | ||
<PackageReference Include="WpfAnalyzers" PrivateAssets="all" IncludeAssets="build;analyzers" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Remove="**\*.png;**\*.jpg;**\*.ico;**\*.ttf" /> | ||
<Resource Include="**\*.png;**\*.jpg;**\*.ico;**\*.ttf" /> | ||
<None Remove="**\*.png;**\*.jpg;**\*.ico;**\*.ttf;**\*.cur" /> | ||
<Resource Include="**\*.png;**\*.jpg;**\*.ico;**\*.ttf;**\*.cur" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="JetBrains.Annotations" PrivateAssets="All" IncludeAssets="build;compile" /> | ||
<PackageReference Include="WpfAnalyzers"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> | ||
</PackageReference> | ||
<SourceRoot Include="$(MSBuildThisFileDirectory)/" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Label="Build"> | ||
<PackageVersion Include="MahApps.Metro" Version="[2.4.10, 3)" /> | ||
<PackageVersion Include="JetBrains.Annotations" Version="2023.2.0" /> | ||
<PackageVersion Include="MahApps.Metro.IconPacks" Version="4.11.0" /> | ||
<PackageVersion Include="Costura.Fody" Version="5.7.0" /> | ||
|
||
<PackageVersion Include="WpfAnalyzers" Version="4.1.1" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
<Project> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<!-- SourceLink --> | ||
<PropertyGroup> | ||
<!-- Optional: Declare that the Repository URL can be published to NuSpec --> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<!-- <IncludeSymbols>true</IncludeSymbols> --> | ||
<!-- Optional: Embed source files that are not tracked by the source control manager to the PDB --> | ||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
<!-- Optional: Include PDB in the built .nupkg --> | ||
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder> | ||
<!-- By using EmbedAllSources we don't need SourceLink itself --> | ||
<!-- https://github.com/dotnet/sourcelink/blob/master/docs/README.md#embedallsources --> | ||
<!-- <EmbedAllSources>true</EmbedAllSources>--> | ||
<EmbedAllSources>true</EmbedAllSources> | ||
</PropertyGroup> | ||
|
||
<!-- PDB-Options --> | ||
<PropertyGroup> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>Embedded</DebugType> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<SourceRoot Include="$(MSBuildThisFileDirectory)/" /> | ||
<SourceRoot Include="$(NuGetPackageRoot)" Condition="'$(NuGetPackageRoot)' != ''" /> | ||
</ItemGroup> | ||
|
||
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.Props', '$(MSBuildThisFileDirectory)../'))" /> | ||
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.build.props', '$(MSBuildThisFileDirectory)../'))" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 2 additions & 10 deletions
12
src/MahApps.Metro.SimpleChildWindow/MahApps.Metro.SimpleChildWindow.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> | ||
<!-- Project properties --> | ||
<PropertyGroup> | ||
<AssemblyName>MahApps.Metro.SimpleChildWindow</AssemblyName> | ||
<Title>MahApps.Metro.SimpleChildWindow</Title> | ||
<RootNamespace>MahApps.Metro.SimpleChildWindow</RootNamespace> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<OutputType>Library</OutputType> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="MahApps.Metro" /> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="MahApps.Metro" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile DependentUpon="%(Filename)" SubType="Code" Update="**\obj\**\*.g$(DefaultLanguageSourceExtension)" /> | ||
<Compile DependentUpon="%(Filename)" SubType="Designer" Update="**\*.xaml$(DefaultLanguageSourceExtension)" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"sdk": { | ||
"version": "6.0.100", | ||
"rollForward": "latestFeature" | ||
"version": "6.0.400", | ||
"rollForward": "latestFeature", | ||
"allowPrerelease": false | ||
} | ||
} |