-
Notifications
You must be signed in to change notification settings - Fork 468
Expand file tree
/
Copy pathMicrosoft.FluentUI.AspNetCore.Components.csproj
More file actions
174 lines (146 loc) · 7.65 KB
/
Microsoft.FluentUI.AspNetCore.Components.csproj
File metadata and controls
174 lines (146 loc) · 7.65 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFrameworks>$(TargetNetVersions)</TargetFrameworks>
<PackageId>Microsoft.FluentUI.AspNetCore.Components</PackageId>
<Summary>A set of Blazor components wrapping Microsoft’s official Fluent UI Web Components. They implement the latest state of the Fluent design language, are built on FAST and work in every major browser.</Summary>
<PackageTags>Fluent UI, Blazor, Web Components</PackageTags>
<Title>Microsoft Fluent UI Web Components for Blazor</Title>
<Description>A set of Blazor components wrapping Microsoft’s official Fluent UI Web Components. They implement the latest state of the Fluent design language, are built on FAST and work in every major browser.</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>icon.png</PackageIcon>
<SignAssembly>False</SignAssembly>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>true</IsPackable>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<DebugType>embedded</DebugType>
<PackageOutputPath>$(SolutionDir)artifacts</PackageOutputPath>
<!-- Write the generated files to a specific folder -->
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>$(SolutionDir).generated</CompilerGeneratedFilesOutputPath>
<!-- Disable the auto-generated CSS Bundle, to use the Components.Scripts project -->
<DisableScopedCssBundling>true</DisableScopedCssBundling>
<ScopedCssEnabled>false</ScopedCssEnabled>
</PropertyGroup>
<PropertyGroup>
<IsTrimmable>true</IsTrimmable>
<TrimMode>link</TrimMode>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
</PropertyGroup>
<!-- Debug -->
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<Optimize>False</Optimize>
<WarningLevel>6</WarningLevel>
<NullableReferenceTypes>true</NullableReferenceTypes>
</PropertyGroup>
<!-- Release -->
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<Optimize>True</Optimize>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
<None Include="..\..\icon.png" Pack="true" PackagePath="\" />
<None Include="**\*.ts" />
</ItemGroup>
<ItemGroup>
<SupportedPlatform Include="browser" />
</ItemGroup>
<!-- Code Analysis -->
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Meziantou.Analyzer">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- Dependencies -->
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" />
<PackageReference Include="Microsoft.Extensions.Http" />
<PackageReference Include="Microsoft.TypeScript.MSBuild" Condition="'$(TargetFramework)'=='$(NetVersion)'">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudioEng.MicroBuild.Core">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<ProjectReference Include="..\Core.Scripts\Microsoft.FluentUI.AspNetCore.Components.Scripts.esproj" PrivateAssets="All" />
</ItemGroup>
<!-- Enable deterministic builds for CI environments and Release configuration -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true' Or '$(TF_BUILD)' == 'true' Or '$(Configuration)' == 'Release'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<!-- Copy XML files to the Demo project (to generate the API documentation) -->
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<ItemGroup>
<XmlFiles Include="$(ProjectDir)bin\$(Configuration)\$(NetVersion)\*.xml" />
</ItemGroup>
<Copy SourceFiles="@(XmlFiles)" DestinationFolder="$(SolutionDir)examples\Tools\FluentUI.Demo.DocApiGen" />
</Target>
<!-- SDK 9.0.300 Broken with WASM Standalone Razor JS Modules -->
<Target Name="NormalizeContentPathsForLinux" BeforeTargets="GetTargetPathWithTargetPlatformMoniker">
<Message Importance="high" Text="Building on Linux!" Condition="$([MSBuild]::IsOSPlatform('Linux'))" />
<PropertyGroup>
<ProjectFullPath>$([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)'))</ProjectFullPath>
</PropertyGroup>
<!-- Save Content items with absolute paths for normalization -->
<ItemGroup>
<_ContentWithAbsolutePaths Include="@(Content)" Condition="$([System.String]::Copy('%(Identity)').StartsWith('/'))">
<OriginalIdentity>%(Identity)</OriginalIdentity>
<NormalizedPath>$([MSBuild]::MakeRelative($(ProjectFullPath), '%(FullPath)'))</NormalizedPath>
</_ContentWithAbsolutePaths>
</ItemGroup>
<!-- Log before modification -->
<Message Importance="normal" Text="Found @(_ContentWithAbsolutePaths->Count()) Content items with absolute paths to normalize" />
<!-- Remove the items with absolute paths -->
<ItemGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">
<Content Remove="@(_ContentWithAbsolutePaths->'%(OriginalIdentity)')" />
</ItemGroup>
<!-- Add them back with normalized paths -->
<ItemGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">
<Content Include="@(_ContentWithAbsolutePaths->'%(NormalizedPath)')" />
</ItemGroup>
<!-- Log after modification -->
<Message Importance="normal" Text="Normalized paths for Content items on Linux" Condition="$([MSBuild]::IsOSPlatform('Linux'))" />
</Target>
<!-- Temporary fix for problem with .esproj files when using latest SDKs. Will be fully fixed in later SDK -->
<Target Name="FixEsprojOriginalItemSpec"
AfterTargets="ResolveReferencedProjectsStaticWebAssets"
Condition="'@(StaticWebAsset)' != ''">
<ItemGroup>
<_EsprojAssetsToFix Include="@(StaticWebAsset)"
Condition="'%(StaticWebAsset.OriginalItemSpec)' != '' AND $([System.String]::Copy('%(StaticWebAsset.OriginalItemSpec)').EndsWith('.esproj'))" />
</ItemGroup>
<ItemGroup Condition="'@(_EsprojAssetsToFix)' != ''">
<StaticWebAsset Remove="@(_EsprojAssetsToFix)" />
<StaticWebAsset Include="@(_EsprojAssetsToFix)">
<OriginalItemSpec>%(Identity)</OriginalItemSpec>
</StaticWebAsset>
</ItemGroup>
<ItemGroup>
<_EsprojAssetsToFix Remove="@(_EsprojAssetsToFix)" />
</ItemGroup>
</Target>
<!-- Resources Localization -->
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.ResxSourceGenerator">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<EmbeddedResource Update="Localization\LanguageResource.resx">
<Public>true</Public>
<OmitGetResourceString>true</OmitGetResourceString>
<AsConstants>true</AsConstants>
<NoWarn>CS1591</NoWarn>
</EmbeddedResource>
</ItemGroup>
</Project>