diff --git a/README.md b/README.md index ac19900..f180882 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ In order to dogfood the enhanced code analysis, follow these steps: First build: -* Open an administrator developer command prompt and run `msbuild Xamarin.CodeAnalysis.sln /restore /t:configure` +* Open an administrator developer command prompt and run `msbuild Xamarin.CodeAnalysis.sln /restore` > This is necessary because the extension provides MSBuild targets that need to be symlinked from the > `Exp` hive location to the `VsInstallDir\MSBuild` location, which requires elevation. diff --git a/Xamarin.CodeAnalysis.sln b/Xamarin.CodeAnalysis.sln index c8fefd5..0a588e1 100644 --- a/Xamarin.CodeAnalysis.sln +++ b/Xamarin.CodeAnalysis.sln @@ -33,43 +33,25 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {A83DFC4B-4270-4A1A-8438-897A8AA61AE0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A83DFC4B-4270-4A1A-8438-897A8AA61AE0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A83DFC4B-4270-4A1A-8438-897A8AA61AE0}.Debug|x86.ActiveCfg = Debug|Any CPU - {A83DFC4B-4270-4A1A-8438-897A8AA61AE0}.Debug|x86.Build.0 = Debug|Any CPU {A83DFC4B-4270-4A1A-8438-897A8AA61AE0}.Release|Any CPU.ActiveCfg = Release|Any CPU {A83DFC4B-4270-4A1A-8438-897A8AA61AE0}.Release|Any CPU.Build.0 = Release|Any CPU - {A83DFC4B-4270-4A1A-8438-897A8AA61AE0}.Release|x86.ActiveCfg = Release|Any CPU - {A83DFC4B-4270-4A1A-8438-897A8AA61AE0}.Release|x86.Build.0 = Release|Any CPU {366C371C-0FCE-4357-87AE-C03F5DB8D47E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {366C371C-0FCE-4357-87AE-C03F5DB8D47E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {366C371C-0FCE-4357-87AE-C03F5DB8D47E}.Debug|x86.ActiveCfg = Debug|Any CPU - {366C371C-0FCE-4357-87AE-C03F5DB8D47E}.Debug|x86.Build.0 = Debug|Any CPU {366C371C-0FCE-4357-87AE-C03F5DB8D47E}.Release|Any CPU.ActiveCfg = Release|Any CPU {366C371C-0FCE-4357-87AE-C03F5DB8D47E}.Release|Any CPU.Build.0 = Release|Any CPU - {366C371C-0FCE-4357-87AE-C03F5DB8D47E}.Release|x86.ActiveCfg = Release|Any CPU - {366C371C-0FCE-4357-87AE-C03F5DB8D47E}.Release|x86.Build.0 = Release|Any CPU {BFD12615-4DF8-4141-9A03-1B082457F699}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BFD12615-4DF8-4141-9A03-1B082457F699}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BFD12615-4DF8-4141-9A03-1B082457F699}.Debug|x86.ActiveCfg = Debug|Any CPU - {BFD12615-4DF8-4141-9A03-1B082457F699}.Debug|x86.Build.0 = Debug|Any CPU {BFD12615-4DF8-4141-9A03-1B082457F699}.Release|Any CPU.ActiveCfg = Release|Any CPU {BFD12615-4DF8-4141-9A03-1B082457F699}.Release|Any CPU.Build.0 = Release|Any CPU - {BFD12615-4DF8-4141-9A03-1B082457F699}.Release|x86.ActiveCfg = Release|Any CPU - {BFD12615-4DF8-4141-9A03-1B082457F699}.Release|x86.Build.0 = Release|Any CPU - {5409EFB9-CF35-47C4-AC27-74A1122132AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5409EFB9-CF35-47C4-AC27-74A1122132AF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5409EFB9-CF35-47C4-AC27-74A1122132AF}.Debug|x86.ActiveCfg = Debug|x86 - {5409EFB9-CF35-47C4-AC27-74A1122132AF}.Debug|x86.Build.0 = Debug|x86 - {5409EFB9-CF35-47C4-AC27-74A1122132AF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5409EFB9-CF35-47C4-AC27-74A1122132AF}.Release|Any CPU.Build.0 = Release|Any CPU - {5409EFB9-CF35-47C4-AC27-74A1122132AF}.Release|x86.ActiveCfg = Release|x86 - {5409EFB9-CF35-47C4-AC27-74A1122132AF}.Release|x86.Build.0 = Release|x86 + {5409EFB9-CF35-47C4-AC27-74A1122132AF}.Debug|Any CPU.ActiveCfg = Debug|x86 + {5409EFB9-CF35-47C4-AC27-74A1122132AF}.Debug|Any CPU.Build.0 = Debug|x86 + {5409EFB9-CF35-47C4-AC27-74A1122132AF}.Release|Any CPU.ActiveCfg = Release|x86 + {5409EFB9-CF35-47C4-AC27-74A1122132AF}.Release|Any CPU.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index af554ef..f479985 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets @@ -50,6 +50,44 @@ + + + + + + + + + + + + %(PackageReference.Identity) + %(PackageReference.CopyLocal) + %(PackageReference.Private) + %(PackageReference.IncludeInVSIX) + $(CopyLocal)$(Private)$(IncludeInVSIX) + + + + + $(CopyLocal) + $(Private) + $(IncludeInVSIX) + + + + + + $(CopyLocal) + $(Private) + $(IncludeInVSIX) + + + + + + diff --git a/src/Xamarin.CodeAnalysis.Windows/Xamarin.CodeAnalysis.Windows.csproj b/src/Xamarin.CodeAnalysis.Windows/Xamarin.CodeAnalysis.Windows.csproj index 6742bb9..e179727 100644 --- a/src/Xamarin.CodeAnalysis.Windows/Xamarin.CodeAnalysis.Windows.csproj +++ b/src/Xamarin.CodeAnalysis.Windows/Xamarin.CodeAnalysis.Windows.csproj @@ -4,14 +4,14 @@ $(VisualStudioVersion.Substring(0, 2)) net472 - AnyCPU;x86 + x86 x86 Xamarin.CodeAnalysis true true - BuiltProjectOutputGroup;DebugSymbolsProjectOutputGroup;GetCopyToOutputDirectoryItems;SatelliteDllsProjectOutputGroup + BuiltProjectOutputGroup;BuiltProjectOutputGroupDependencies;DebugSymbolsProjectOutputGroup;DocumentationProjectOutputGroup;GetCopyToOutputDirectoryItems;SatelliteDllsProjectOutputGroup Xamarin.CodeAnalysis.vsix @@ -51,7 +51,7 @@ ExcludeTargets=true - + BuildReference=false Xamarin.CodeAnalysis false @@ -105,15 +105,6 @@ - - @@ -125,7 +116,7 @@ - + @@ -158,16 +149,12 @@ - - - - <_FilesToDelete Include="@(MkLinkSource -> WithMetadataValue('Exists', 'true'))" /> - - + + - + diff --git a/src/Xamarin.CodeAnalysis/Xamarin.CodeAnalysis.csproj b/src/Xamarin.CodeAnalysis/Xamarin.CodeAnalysis.csproj index dd5f2f7..9aa46ac 100644 --- a/src/Xamarin.CodeAnalysis/Xamarin.CodeAnalysis.csproj +++ b/src/Xamarin.CodeAnalysis/Xamarin.CodeAnalysis.csproj @@ -8,7 +8,7 @@ - + @@ -30,8 +30,7 @@ - + \ No newline at end of file