-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathWinRT.SourceGenerator2.csproj
More file actions
61 lines (52 loc) · 2.77 KB
/
Copy pathWinRT.SourceGenerator2.csproj
File metadata and controls
61 lines (52 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>$(DotNetVersion)</TargetFramework>
<Nullable>enable</Nullable>
<!--
Suppress the following warning:
"RS1041: This compiler extension should not be implemented in an assembly with target framework
'.NET 10.0'. References to other target frameworks will cause the compiler to behave unpredictably."
Using .NET 10 is fine for the scenarios we need to support.
-->
<NoWarn>$(NoWarn);RS1041</NoWarn>
<!-- 'WindowsRuntime' is the root namespace, with the name being consistent with eg. 'System.Runtime.InteropServices.WindowsRuntime' -->
<RootNamespace>WindowsRuntime.SourceGenerator</RootNamespace>
<!-- The assembly name must always be 'WinRT.SourceGenerator', for back-compatibility -->
<AssemblyName>WinRT.SourceGenerator</AssemblyName>
<!--
While this project does not produce a .dll that consuming projects execute at runtime, we still want to
include debugging information, to make it easier to debug the generator themselves in case of issues.
Rather than using portable .pdb files, we just embed them, to ensure debuggers will load them correctly.
Using portable .pdb-s results in Visual Studio not automatically loading them when attaching a debugger
to the Roslyn code analysis process to try to debug the generators, forcing to pick the path manually.
-->
<DebugType>embedded</DebugType>
<!-- Roslyn settings -->
<IsRoslynComponent>true</IsRoslynComponent>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
</PropertyGroup>
<!-- Assembly info -->
<PropertyGroup>
<Authors>Microsoft Corporation</Authors>
<Company>Microsoft Corporation</Company>
<Product>C#/WinRT</Product>
<FileVersion>$(VersionNumber)</FileVersion>
<Version>$(VersionNumber)</Version>
<AssemblyVersion>$(VersionNumber)</AssemblyVersion>
<InformationalVersion>$(VersionNumber)</InformationalVersion>
<NeutralLanguage>en</NeutralLanguage>
<Description>C#/WinRT Authoring Source Generator $(VersionString)</Description>
<AssemblyTitle>C#/WinRT Authoring Source Generator v$(VersionString)</AssemblyTitle>
<Copyright>Copyright (c) Microsoft Corporation. All rights reserved.</Copyright>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\WinRT.Runtime2\key.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<!-- Additional files with the Roslyn analyzer rules -->
<ItemGroup>
<AdditionalFiles Include="AnalyzerReleases.Shipped.md" />
<AdditionalFiles Include="AnalyzerReleases.Unshipped.md" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" VersionOverride="5.0.0-2.final" PrivateAssets="all" />
</ItemGroup>
</Project>