-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated targets and props files to include nuget package icon * Fixed GraphPresenter after props and targets update * Updated Graph version in UnitTests app * Fixed issue with xaml type reflection * Commented out TreatWarningAsErrors
- Loading branch information
1 parent
ad7efbd
commit 2c58710
Showing
13 changed files
with
204 additions
and
123 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
CommunityToolkit.Authentication.Msal/CommunityToolkit.Authentication.Msal.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,4 +1,5 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
|
||
|
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
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,94 +1,63 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<Authors>Microsoft.Toolkit</Authors> | ||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | ||
<NoPackageAnalysis>true</NoPackageAnalysis> | ||
<PackageIconUrl>https://raw.githubusercontent.com/CommunityToolkit/CommunityToolkit/master/build/nuget.png</PackageIconUrl> | ||
<PackageProjectUrl>https://github.com/CommunityToolkit/WindowsCommunityToolkit</PackageProjectUrl> | ||
<PackageLicenseUrl>https://github.com/CommunityToolkit/WindowsCommunityToolkit/blob/master/License.md</PackageLicenseUrl> | ||
<PackageReleaseNotes>https://github.com/CommunityToolkit/WindowsCommunityToolkit/releases</PackageReleaseNotes> | ||
<Copyright>(c) .NET Foundation and Contributors. All rights reserved.</Copyright> | ||
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)Toolkit.ruleset</CodeAnalysisRuleSet> | ||
<DefaultLanguage>en-US</DefaultLanguage> | ||
<IsDesignProject>$(MSBuildProjectName.Contains('.Design'))</IsDesignProject> | ||
<IsTestProject>$(MSBuildProjectName.Contains('Test'))</IsTestProject> | ||
<IsUwpProject Condition="'$(IsDesignProject)' != 'true'">$(MSBuildProjectName.Contains('Uwp'))</IsUwpProject> | ||
<IsSampleProject>$(MSBuildProjectName.Contains('Sample'))</IsSampleProject> | ||
<IsWpfProject>$(MSBuildProjectName.Contains('Wpf'))</IsWpfProject> | ||
<DefaultTargetPlatformVersion>19041</DefaultTargetPlatformVersion> | ||
<DefaultTargetPlatformMinVersion>17763</DefaultTargetPlatformMinVersion> | ||
<PackageOutputPath>$(MSBuildThisFileDirectory)bin\nupkg</PackageOutputPath> | ||
<RepositoryDirectory>$(MSBuildThisFileDirectory)</RepositoryDirectory> | ||
<BuildToolsDirectory>$(RepositoryDirectory)build\</BuildToolsDirectory> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<SignAssembly Condition="'$(SignAssembly)' == '' and '$(IsUwpProject)' != 'true'" >true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)toolkit.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
<Import Project="$(BuildToolsDirectory)Windows.Toolkit.Common.props" /> | ||
|
||
<Choose> | ||
<When Condition="'$(IsTestProject)' != 'true' and '$(IsSampleProject)' != 'true' and '$(IsDesignProject)' != 'true'"> | ||
<When Condition="$(IsCoreProject)"> | ||
<PropertyGroup> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<PackageOutputPath>$(RepositoryDirectory)bin\nupkg</PackageOutputPath> | ||
<GenerateLibraryLayout Condition="$(IsUwpProject)">true</GenerateLibraryLayout> | ||
<!--<TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors>--> | ||
</PropertyGroup> | ||
</When> | ||
<Otherwise> | ||
<PropertyGroup> | ||
<IsPackable>false</IsPackable> | ||
<IsPublishable>false</IsPublishable> | ||
<NoWarn>$(NoWarn);CS8002;SA0001</NoWarn> | ||
</PropertyGroup> | ||
</Otherwise> | ||
</Choose> | ||
|
||
<Choose> | ||
<When Condition="('$(IsUwpProject)' == 'true') and '$(IsSampleProject)' != 'true' and '$(IsDesignProject)' != 'true'"> | ||
<When Condition="$(IsUwpProject)"> | ||
<PropertyGroup> | ||
<GenerateLibraryLayout>true</GenerateLibraryLayout> | ||
<!-- Code CS8002 is a warning for strong named -> non-strong-named reference. This is valid for platforms other than .NET Framework (and is needed for the UWP targets. --> | ||
<NoWarn>$(NoWarn);CS8002</NoWarn> | ||
<!-- For including default @(Page) and @(Resource) items via 'MSBuild.Sdk.Extras' Sdk package. Also provides up to date check and file nesting --> | ||
<ExtrasEnableDefaultXamlItems>true</ExtrasEnableDefaultXamlItems> | ||
</PropertyGroup> | ||
</When> | ||
</Choose> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="All" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="All" /> | ||
</ItemGroup> | ||
|
||
<Choose> | ||
<When Condition="'$(IsTestProject)' != 'true' and '$(SourceLinkEnabled)' != 'false' and '$(IsSampleProject)' != 'true' and '$(IsDesignProject)' != 'true'"> | ||
<When Condition="!$(IsSampleProject) and '$(SourceLinkEnabled)' != 'false'"> | ||
<PropertyGroup> | ||
<!-- Optional: Declare that the Repository URL can be published to NuSpec --> | ||
<!-- Declare that the Repository URL can be published to NuSpec --> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<!-- Optional: Embed source files that are not tracked by the source control manager to the PDB --> | ||
<!-- 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 --> | ||
<!-- Include PDB in the built .nupkg --> | ||
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.SourceLink.AzureRepos.Git" Version="1.0.0" PrivateAssets="All"/> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/> | ||
</ItemGroup> | ||
</When> | ||
</Choose> | ||
|
||
<Choose> | ||
<When Condition="'$(IsTestProject)' != 'true' and '$(IsSampleProject)' != 'true' and '$(IsDesignProject)' != 'true' and '$(IsWpfProject)' != 'true'"> | ||
<ItemGroup> | ||
<!--<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="15.3.83" PrivateAssets="all" />--> | ||
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="all" /> | ||
|
||
<EmbeddedResource Include="**\*.rd.xml" /> | ||
<Page Include="**\*.xaml" Exclude="**\bin\**\*.xaml;**\obj\**\*.xaml" SubType="Designer" Generator="MSBuild:Compile" /> | ||
<Compile Update="**\*.xaml.cs" DependentUpon="%(Filename)" /> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" /> | ||
</ItemGroup> | ||
<PropertyGroup Condition="'$(Configuration)' == 'Release' or '$(Configuration)' == 'CI'"> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
</PropertyGroup> | ||
</When> | ||
</Choose> | ||
|
||
<PropertyGroup Condition="'$(IsUwpProject)' == 'true'"> | ||
|
||
<!-- 8002 is a strong named -> non-strong-named reference --> | ||
<!-- This is valid for platforms other than .NET Framework (and is needed for the UWP targets --> | ||
<NoWarn>$(NoWarn);8002</NoWarn> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="all" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json"> | ||
<Link>stylecop.json</Link> | ||
</AdditionalFiles> | ||
</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,30 +1,32 @@ | ||
<Project> | ||
|
||
<Import Project="$(BuildToolsDirectory)Windows.Toolkit.Common.targets" /> | ||
|
||
<PropertyGroup> | ||
<UseUWP Condition="($(TargetFramework.StartsWith('uap10.0')) or '$(TargetFramework)' == 'net461')">true</UseUWP> | ||
<UseUWP Condition="'$(UseUWP)' == ''">false</UseUWP> | ||
</PropertyGroup> | ||
|
||
<Choose> | ||
<When Condition="'$(TargetFramework)' == 'uap10.0' or '$(TargetFramework)' == 'uap10.0.17763' or '$(TargetFramework)' == 'native' or '$(TargetFramework)' == 'net461'"> | ||
<!-- UAP versions for uap10.0 where TPMV isn't implied --> | ||
<When Condition="!($(TargetFramework.StartsWith('uap10.0')) or '$(TargetFramework)' == 'native' or $(IsSampleProject))"> | ||
<PropertyGroup> | ||
<TargetPlatformVersion>10.0.$(DefaultTargetPlatformVersion).0</TargetPlatformVersion> | ||
<TargetPlatformMinVersion>10.0.$(DefaultTargetPlatformMinVersion).0</TargetPlatformMinVersion> | ||
<DebugType>Full</DebugType> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)toolkit.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<SDKReference Condition="'$(UseWindowsDesktopSdk)' == 'true' " Include="WindowsDesktop, Version=$(TargetPlatformVersion)"> | ||
<Name>Windows Desktop Extensions for the UWP</Name> | ||
</SDKReference> | ||
<SDKReference Condition="'$(UseWindowsMobileSdk)' == 'true' " Include="WindowsMobile, Version=$(TargetPlatformVersion)"> | ||
<Name>Windows Mobile Extensions for the UWP</Name> | ||
</SDKReference> | ||
</ItemGroup> | ||
</When> | ||
</Choose> | ||
|
||
<Import Project="$(BuildToolsDirectory)Windows.Toolkit.UWP.Build.targets" Condition="$(UseUWP)" /> | ||
|
||
<Import Project="$(BuildToolsDirectory)Windows.Toolkit.Workarounds.Xaml.targets" Condition="$(IsCoreProject)" /> | ||
|
||
<Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes"> | ||
<ItemGroup> | ||
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition=" '$(SourceRevisionId)' != '' "> | ||
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition="'$(SourceRevisionId)' != ''"> | ||
<_Parameter1>CommitHash</_Parameter1> | ||
<_Parameter2>$(SourceRevisionId)</_Parameter2> | ||
</AssemblyAttribute> | ||
</ItemGroup> | ||
</Target> | ||
</Project> | ||
|
||
</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
Oops, something went wrong.