diff --git a/build/SharedFx.props b/build/SharedFx.props
index f142cf3d82..f9559d6d7d 100644
--- a/build/SharedFx.props
+++ b/build/SharedFx.props
@@ -4,9 +4,7 @@
<_WorkRoot>$(RepositoryRoot).w\
<_WorkLayoutDir>$(_WorkRoot).l\
<_WorkOutputDir>$(_WorkRoot).o\
- <_SrcDir>$(RepositoryRoot)src\
- <_AllMetapackageDir>$(_SrcDir)Microsoft.AspNetCore.All\
- <_AppMetapackageDir>$(_SrcDir)Microsoft.AspNetCore.App\
+ <_MetapackageSrcRoot>$(RepositoryRoot)src\
<_TemplatesDir>$(MSBuildThisFileDirectory)tools\templates\
<_DockerDir>$(MSBuildThisFileDirectory)tools\docker\
<_PackagingDir>$(MSBuildThisFileDirectory)tools\packaging\
diff --git a/build/SharedFx.targets b/build/SharedFx.targets
index 17a4355534..0a3006047a 100644
--- a/build/SharedFx.targets
+++ b/build/SharedFx.targets
@@ -8,12 +8,17 @@
+ $(_MetapackageSrcRoot)$(MetapackageName)\
$(_WorkRoot)$(MetapackageName)\
Configuration=$(Configuration);DotNetRestoreSourcePropsPath=$(GeneratedRestoreSourcesPropsPath);AspNetUniverseBuildOffline=true
$(CommonProps);RuntimeFrameworkVersion=$(MicrosoftNETCoreApp21PackageVersion)
$(CommonProps);AppMetapackageVersion=$(PackageVersion)
+
+
@@ -22,8 +27,8 @@
-
-
+
+
-
-
- MetapackageName=Microsoft.AspNetCore.App
- $(AppMetapackageProps);MetapackageSource=$(_AppMetapackageDir)
- $(AppMetapackageProps);MetapackageReferenceType=AppMetapackage
- MetapackageName=Microsoft.AspNetCore.All
- $(AllMetapackageProps);MetapackageSource=$(_AllMetapackageDir)
- $(AllMetapackageProps);MetapackageReferenceType=AllMetapackage
-
+
+
+ <_MetapackageBuilderProject Include="$(MSBuildProjectFullPath)">
+
+ MetapackageName=Microsoft.AspNetCore.App;
+ MetapackageReferenceType=AppMetapackage
+
+
-
-
+ <_MetapackageBuilderProject Include="$(MSBuildProjectFullPath)">
+
+ MetapackageName=Microsoft.AspNetCore.All;
+ MetapackageReferenceType=AllMetapackage
+
+
+
+ <_MetapackageBuilderProject Include="$(MSBuildProjectFullPath)">
+
+ MetapackageName=Microsoft.AspNetCore.Analyzers;
+ MetapackageReferenceType=Analyzer
+
+
+
+
+
@@ -128,7 +149,7 @@
-
+
diff --git a/build/artifacts.props b/build/artifacts.props
index f464f3a94f..e1f953f937 100644
--- a/build/artifacts.props
+++ b/build/artifacts.props
@@ -5,6 +5,7 @@
false
false
false
+ false
false
false
@@ -19,6 +20,7 @@
+
@@ -91,7 +93,7 @@
-
+
@@ -226,7 +228,7 @@
-
+
diff --git a/build/repo.targets b/build/repo.targets
index ea11b566aa..67c6ade26d 100644
--- a/build/repo.targets
+++ b/build/repo.targets
@@ -19,7 +19,7 @@
$(CleanDependsOn);CleanArtifacts;CleanUniverseArtifacts
$(RestoreDependsOn);InstallDotNet;RestoreExternalDependencies
$(CompileDependsOn);BuildRepositories
- $(PackageDependsOn);BuildMetapackage;BuildTemplates;SplitPackages
+ $(PackageDependsOn);BuildMetapackages;BuildTemplates;SplitPackages
$(TestDependsOn);_TestRepositories
$(VerifyDependsOn);VerifyCoherentVersions
$(GetArtifactInfoDependsOn);ResolveRepoInfo
diff --git a/src/Microsoft.AspNetCore.Analyzers/Microsoft.AspNetCore.Analyzers.csproj b/src/Microsoft.AspNetCore.Analyzers/Microsoft.AspNetCore.Analyzers.csproj
new file mode 100644
index 0000000000..32c9b43a23
--- /dev/null
+++ b/src/Microsoft.AspNetCore.Analyzers/Microsoft.AspNetCore.Analyzers.csproj
@@ -0,0 +1,25 @@
+
+
+
+
+
+ $(DotNetRestoreSources)
+
+ $(RestoreSources);
+ https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json;
+ https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json;
+
+
+ $(RestoreSources);
+ https://api.nuget.org/v3/index.json;
+
+
+ false
+ false
+ netstandard2.0
+ aspnetcore
+ Microsoft.AspNetCore.Analyzers
+ false
+
+
+