-
-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
67 lines (59 loc) · 3.36 KB
/
Copy pathDirectory.Build.props
File metadata and controls
67 lines (59 loc) · 3.36 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
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<ProjectIsInDocs Condition="$(MSBuildProjectDirectory.Contains('$(MSBuildThisFileDirectory)docs'))">true</ProjectIsInDocs>
<ProjectIsInSrc Condition="$(MSBuildProjectDirectory.Contains('$(MSBuildThisFileDirectory)src'))">true</ProjectIsInSrc>
<ProjectIsInTemplate Condition="$(MSBuildProjectDirectory.Contains('$(MSBuildThisFileDirectory)template'))">true</ProjectIsInTemplate>
<ProjectIsInTest Condition="$(MSBuildProjectDirectory.Contains('$(MSBuildThisFileDirectory)test'))">true</ProjectIsInTest>
</PropertyGroup>
<PropertyGroup Condition="'$(ProjectIsInDocs)' == 'true'">
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>
<PropertyGroup Condition="'$(ProjectIsInSrc)' == 'true'">
<ProjectIsAnalyzer Condition="'$(MSBuildProjectName)' == 'Blazor.BrowserExtension.Analyzer'">true</ProjectIsAnalyzer>
<ProjectIsBuild Condition="'$(MSBuildProjectName)' == 'Blazor.BrowserExtension.Build'">true</ProjectIsBuild>
<TargetFrameworks>net10.0;net9.0;net8.0</TargetFrameworks>
<TargetFrameworks Condition="'$(ProjectIsAnalyzer)' == 'true'">netstandard2.0</TargetFrameworks>
<TargetFrameworks Condition="'$(ProjectIsBuild)' == 'true'">$(TargetFrameworks);net472</TargetFrameworks>
<IsPackable>true</IsPackable>
<GenerateDependencyFile>false</GenerateDependencyFile>
<IsShippingPackage>true</IsShippingPackage>
<HasReferenceAssembly>false</HasReferenceAssembly>
<!-- NU190X - Package reference has known vulnerability. All Microsoft package references are the minimum supported versions. The consumer should update their own package references instead of being enforced by this package. -->
<NoWarn>NU1901;NU1902;NU1903;NU1904</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(ProjectIsInTemplate)' == 'true'">
<TargetFramework>netstandard2.0</TargetFramework>
<IsPackable>true</IsPackable>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GenerateDependencyFile>false</GenerateDependencyFile>
<IsShippingPackage>true</IsShippingPackage>
<HasReferenceAssembly>false</HasReferenceAssembly>
<!-- Suppresses the warnings about the package not having assemblies in lib/*/.dll. -->
<NoPackageAnalysis>true</NoPackageAnalysis>
<PackageType>Template</PackageType>
<IncludeBuildOutput>false</IncludeBuildOutput>
</PropertyGroup>
<PropertyGroup Condition="'$(ProjectIsInTest)' == 'true'">
<TargetFramework>net10.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<PropertyGroup Condition="'$(IsPackable)' == 'true'">
<PackageOutputPath>$(MSBuildThisFileDirectory)PackageOutput</PackageOutputPath>
<Authors>mingyaulee</Authors>
<RepositoryUrl>https://github.com/mingyaulee/Blazor.BrowserExtension</RepositoryUrl>
<PackageTags>Blazor Browser Chrome Firefox Edge Extension Addons .Net</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIcon>Icon.png</PackageIcon>
</PropertyGroup>
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<Content Include="$(MSBuildThisFileDirectory)Icon\Icon.png">
<Pack>true</Pack>
<PackagePath></PackagePath>
</Content>
</ItemGroup>
</Project>