This repository was archived by the owner on Feb 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +61
-2
lines changed Expand file tree Collapse file tree 4 files changed +61
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<Dependencies >
3
- <ProductDependencies ></ProductDependencies >
3
+ <ProductDependencies >
4
+ <Dependency Name =" Microsoft.AspNetCore.Mvc.Analyzers" Version =" 3.0.0-preview4-19154-11" >
5
+ <Uri >https://github.com/aspnet/AspNetCore</Uri >
6
+ <Sha >0000</Sha >
7
+ </Dependency >
8
+ <Dependency Name =" Microsoft.AspNetCore.Mvc.Api.Analyzers" Version =" 3.0.0-preview4-19154-11" >
9
+ <Uri >https://github.com/aspnet/AspNetCore</Uri >
10
+ <Sha >0000</Sha >
11
+ </Dependency >
12
+ </ProductDependencies >
4
13
<ToolsetDependencies >
5
14
<Dependency Name =" Microsoft.DotNet.Arcade.Sdk" Version =" 1.0.0-beta.19154.14" >
6
15
<Uri >https://github.com/dotnet/arcade</Uri >
Original file line number Diff line number Diff line change 13
13
<RestoreSources >
14
14
$(RestoreSources);
15
15
https://dotnet.myget.org/F/dotnet-core/api/v3/index.json;
16
+ https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json;
16
17
https://dotnet.myget.org/F/msbuild/api/v3/index.json;
17
18
https://www.myget.org/F/nugetbuild/api/v3/index.json;
18
19
https://dotnet.myget.org/F/dotnet-web/api/v3/index.json
19
20
</RestoreSources >
20
21
</PropertyGroup >
22
+
23
+ <!--
24
+
25
+ These versions should ONLY be updated by automation.
26
+
27
+ DO NOT UPDATE THESE MANUALLY. Use the `darc` command line tool to update this file so it stays in sync with
28
+ Version.Details.xml.
29
+
30
+ See https://github.com/dotnet/arcade/blob/master/Documentation/Darc.md for instructions on using darc.
31
+
32
+ -->
33
+ <PropertyGroup Label =" Automated" >
34
+ <MicrosoftAspNetCoreMvcAnalyzers >3.0.0-preview4-19154-11</MicrosoftAspNetCoreMvcAnalyzers >
35
+ <MicrosoftAspNetCoreMvcApiAnalyzers >3.0.0-preview4-19154-11</MicrosoftAspNetCoreMvcApiAnalyzers >
36
+ </PropertyGroup >
21
37
</Project >
Original file line number Diff line number Diff line change 28
28
<ProjectReference Include =" $(RepoRoot)\src\Publish\Package\Microsoft.NET.Sdk.Publish.csproj" />
29
29
</ItemGroup >
30
30
31
- </Project >
31
+ <ItemGroup >
32
+ <PackageReference Include =" Microsoft.AspNetCore.Mvc.Analyzers" Version =" $(MicrosoftAspNetCoreMvcAnalyzers)" PrivateAssets =" All" BundleAsAnalyzer =" true" />
33
+ <PackageReference Include =" Microsoft.AspNetCore.Mvc.Api.Analyzers" Version =" $(MicrosoftAspNetCoreMvcApiAnalyzers)" PrivateAssets =" All" BundleAsAnalyzer =" true" />
34
+ </ItemGroup >
35
+
36
+ <Target Name =" _PackBundledAnalyzers" Inputs =" @(PackageReference->HasMetadata('BundleAsAnalyzer'))" Outputs =" %(PackageReference.Identity)" BeforeTargets =" Build" >
37
+ <PropertyGroup >
38
+ <_AnalyzerPath >$(NuGetPackageRoot)@(PackageReference->ToLower())\@(PackageReference->Metadata('Version')->ToLower())\analyzers\</_AnalyzerPath >
39
+ </PropertyGroup >
40
+ <ItemGroup >
41
+ <_AnalyzerFile Include =" $(_AnalyzerPath)**\*.dll" />
42
+ </ItemGroup >
43
+
44
+ <Error
45
+ Text =" No files found for analyzer for @(PackageReference) at path $(_AnalyzerPath)"
46
+ Condition =" '@(_AnalyzerFile->Count())' == '0'" />
47
+
48
+ <ItemGroup >
49
+ <None Include =" @(_AnalyzerFile)" Pack =" true" PackagePath =" analyzers/cs/%(_AnalyzerFile.Filename)%(_AnalyzerFile.Extension)" />
50
+ </ItemGroup >
51
+ </Target >
52
+
53
+ </Project >
Original file line number Diff line number Diff line change @@ -33,5 +33,17 @@ Copyright (c) .NET Foundation. All rights reserved.
33
33
<ItemGroup Condition =" '$(DisableImplicitFrameworkReferences)' != 'true' And '$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' >= '3.0'" >
34
34
<FrameworkReference Include =" Microsoft.AspNetCore.App" IsImplicitlyDefined =" true" />
35
35
</ItemGroup >
36
+
37
+ <ItemGroup Condition =" '$(DisableImplicitAspNetCoreAnalyzers)' != 'true' And '$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' >= '3.0'" >
38
+ <Analyzer
39
+ Include =" $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..))\analyzers\cs\Microsoft.AspNetCore.Mvc.Analyzers.dll"
40
+ Condition =" '$(Language)'=='C#'"
41
+ IsImplicitlyDefined =" true" />
42
+
43
+ <Analyzer
44
+ Include =" $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..))\analyzers\cs\Microsoft.AspNetCore.Mvc.Api.Analyzers.dll"
45
+ Condition =" '$(Language)'=='C#' AND '$(IncludeOpenAPIAnalyzers)' == 'true'"
46
+ IsImplicitlyDefined =" true" />
47
+ </ItemGroup >
36
48
37
49
</Project >
You can’t perform that action at this time.
0 commit comments