Skip to content

Commit 91c9799

Browse files
committed
Added Lucene.Net.CodeAnalysis.Dev.Vsix project for Visual Studio live debugging
1 parent ab9abfb commit 91c9799

5 files changed

Lines changed: 109 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ChildProcessDebuggingSettings IsEnabled="true" xmlns="http://schemas.microsoft.com/vstudio/ChildProcessDebuggingSettings/2014">
3+
<DefaultRule Attach="false" />
4+
<Rule IsEnabled="true" ProcessName="Microsoft.ServiceHub.Controller.exe" CommandLine="" EngineFilter="{3b476d35-a401-11d2-aad4-00c04f990171}" />
5+
<Rule IsEnabled="true" ProcessName="ServiceHub.RoslynCodeAnalysisService.exe" CommandLine="" EngineFilter="{2e36f1d4-b23c-435d-ab41-18e608940038}" />
6+
</ChildProcessDebuggingSettings>

Lucene.Net.CodeAnalysis.Dev.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{1A48DD8E-1D7
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{8170F744-3AE0-41EE-8986-611BA2C20425}"
99
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lucene.Net.CodeAnalysis.Dev.Vsix", "src\Lucene.Net.CodeAnalysis.Dev.Vsix\Lucene.Net.CodeAnalysis.Dev.Vsix.csproj", "{B9116527-2486-4A4C-90F8-378DF26E39AF}"
11+
EndProject
1012
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lucene.Net.CodeAnalysis.Dev", "src\Lucene.Net.CodeAnalysis.Dev\Lucene.Net.CodeAnalysis.Dev.csproj", "{0611A6A8-372D-4E03-BAAF-731FF4844D6C}"
1113
EndProject
1214
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lucene.Net.CodeAnalysis.Dev.Tests", "tests\Lucene.Net.CodeAnalysis.Dev.Tests\Lucene.Net.CodeAnalysis.Dev.Tests.csproj", "{007DD065-3DF1-4AC1-9403-FE11E4654AF4}"
@@ -21,6 +23,10 @@ Global
2123
Release|Any CPU = Release|Any CPU
2224
EndGlobalSection
2325
GlobalSection(ProjectConfigurationPlatforms) = postSolution
26+
{B9116527-2486-4A4C-90F8-378DF26E39AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{B9116527-2486-4A4C-90F8-378DF26E39AF}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{B9116527-2486-4A4C-90F8-378DF26E39AF}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{B9116527-2486-4A4C-90F8-378DF26E39AF}.Release|Any CPU.Build.0 = Release|Any CPU
2430
{0611A6A8-372D-4E03-BAAF-731FF4844D6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2531
{0611A6A8-372D-4E03-BAAF-731FF4844D6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
2632
{0611A6A8-372D-4E03-BAAF-731FF4844D6C}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -42,6 +48,7 @@ Global
4248
HideSolutionNode = FALSE
4349
EndGlobalSection
4450
GlobalSection(NestedProjects) = preSolution
51+
{B9116527-2486-4A4C-90F8-378DF26E39AF} = {1A48DD8E-1D71-43AE-B15D-977A87972623}
4552
{0611A6A8-372D-4E03-BAAF-731FF4844D6C} = {1A48DD8E-1D71-43AE-B15D-977A87972623}
4653
{007DD065-3DF1-4AC1-9403-FE11E4654AF4} = {8170F744-3AE0-41EE-8986-611BA2C20425}
4754
{62BE25C9-72F2-4348-96C4-7329252E9DE8} = {1A48DD8E-1D71-43AE-B15D-977A87972623}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net472</TargetFramework>
5+
<RootNamespace>Lucene.Net.CodeAnalysis.Dev.Vsix</RootNamespace>
6+
<AssemblyName>Lucene.Net.CodeAnalysis.Dev.Vsix</AssemblyName>
7+
8+
<!-- Newer versions of VS and the SDK allow loading as 64 bit, so we need this for compatibility when loading in VS -->
9+
<Prefer32Bit>false</Prefer32Bit>
10+
</PropertyGroup>
11+
12+
<!-- If not building inside Visual Studio, convert this to a class library project so it will succeed.
13+
We don't use the output in from the command line, anyway. The BuildVsix option is so we can use
14+
the old build tools to build a VSIX on the command-line (not necessary in most cases). -->
15+
<PropertyGroup Condition="'$(BuildingInsideVisualStudio)' == 'true' Or '$(BuildVsix)' == 'true' ">
16+
<GeneratePkgDefFile>false</GeneratePkgDefFile>
17+
<IncludeAssemblyInVSIXContainer>false</IncludeAssemblyInVSIXContainer>
18+
<IncludeDebugSymbolsInVSIXContainer>false</IncludeDebugSymbolsInVSIXContainer>
19+
<IncludeDebugSymbolsInLocalVSIXDeployment>false</IncludeDebugSymbolsInLocalVSIXDeployment>
20+
<CopyBuildOutputToOutputDirectory>false</CopyBuildOutputToOutputDirectory>
21+
<CopyOutputSymbolsToOutputDirectory>false</CopyOutputSymbolsToOutputDirectory>
22+
<VSSDKTargetPlatformRegRootSuffix>Roslyn</VSSDKTargetPlatformRegRootSuffix>
23+
24+
<!-- Import build tools -->
25+
<CustomAfterMicrosoftCSharpTargets Condition="Exists('$(VsSDKInstall)\Microsoft.VsSDK.targets')">$(VsSDKInstall)\Microsoft.VsSDK.targets</CustomAfterMicrosoftCSharpTargets>
26+
</PropertyGroup>
27+
28+
<ItemGroup Condition="'$(BuildingInsideVisualStudio)' == 'true' Or '$(BuildVsix)' == 'true'">
29+
<PackageReference Include="Microsoft.VSSDK.BuildTools" PrivateAssets="all" />
30+
</ItemGroup>
31+
32+
<Import Project="localized.resources.targets" />
33+
34+
<PropertyGroup>
35+
<StartAction>Program</StartAction>
36+
<StartProgram>$(DevEnvDir)devenv.exe</StartProgram>
37+
<StartArguments>/rootsuffix $(VSSDKTargetPlatformRegRootSuffix)</StartArguments>
38+
</PropertyGroup>
39+
40+
<ItemGroup>
41+
<ProjectReference Include="..\Lucene.Net.CodeAnalysis.Dev.CodeFixes\Lucene.Net.CodeAnalysis.Dev.CodeFixes.csproj" Condition="Exists('..\Lucene.Net.CodeAnalysis.Dev.CodeFixes\Lucene.Net.CodeAnalysis.Dev.CodeFixes.csproj')" />
42+
<ProjectReference Include="..\Lucene.Net.CodeAnalysis.Dev\Lucene.Net.CodeAnalysis.Dev.csproj" />
43+
</ItemGroup>
44+
45+
<ItemGroup>
46+
<!-- https://github.com/dotnet/sdk/issues/433 -->
47+
<ProjectReference Update="@(ProjectReference)" AdditionalProperties="TargetFramework=netstandard2.0" />
48+
49+
<!-- https://github.com/Microsoft/extendvs/issues/57 -->
50+
<ProjectReference Update="@(ProjectReference)" Name="%(Filename)" />
51+
</ItemGroup>
52+
53+
</Project>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<Project>
2+
3+
<PropertyGroup>
4+
<GetVsixSourceItemsDependsOn>$(GetVsixSourceItemsDependsOn);IncludeResourcesInVsix</GetVsixSourceItemsDependsOn>
5+
</PropertyGroup>
6+
7+
<Target Name="IncludeResourcesInVsix">
8+
<ItemGroup>
9+
<VSIXSourceItem Include="..\Lucene.Net.CodeAnalysis.Dev\bin\$(Configuration)\netstandard2.0\**\*.resources.dll">
10+
<VsixSubPath>%(RecursiveDir)</VsixSubPath>
11+
<!-- Although these do not contain analyzers, we need this setting to ensure they are loaded in the analyzer load context. -->
12+
<AssetType>Microsoft.VisualStudio.Analyzer</AssetType>
13+
</VSIXSourceItem>
14+
</ItemGroup>
15+
</Target>
16+
17+
</Project>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
3+
<Metadata>
4+
<Identity Id="Lucene.Net.CodeAnalysis.Dev" Version="1.0.0" Language="en-US" Publisher="NightOwl888"/>
5+
<DisplayName>Lucene.Net.CodeAnalysis.Dev</DisplayName>
6+
<Description xml:space="preserve">This is a debugging project for Lucene.Net.CodeAnalysis.Dev analyzers and code fixes.</Description>
7+
</Metadata>
8+
<Installation>
9+
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,)">
10+
<ProductArchitecture>amd64</ProductArchitecture>
11+
</InstallationTarget>
12+
</Installation>
13+
<Dependencies>
14+
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.7.2,)" />
15+
</Dependencies>
16+
<Assets>
17+
<Asset Type="Microsoft.VisualStudio.MefComponent" d:Source="Project" d:ProjectName="Lucene.Net.CodeAnalysis.Dev" Path="|Lucene.Net.CodeAnalysis.Dev|"/>
18+
<Asset Type="Microsoft.VisualStudio.Analyzer" d:Source="Project" d:ProjectName="Lucene.Net.CodeAnalysis.Dev" Path="|Lucene.Net.CodeAnalysis.Dev|"/>
19+
<!--<Asset Type="Microsoft.VisualStudio.MefComponent" d:Source="Project" d:ProjectName="Lucene.Net.CodeAnalysis.Dev.CodeFixes" Path="|Lucene.Net.CodeAnalysis.Dev.CodeFixes|"/>
20+
<Asset Type="Microsoft.VisualStudio.Analyzer" d:Source="Project" d:ProjectName="Lucene.Net.CodeAnalysis.Dev.CodeFixes" Path="|Lucene.Net.CodeAnalysis.Dev.CodeFixes|"/>-->
21+
</Assets>
22+
<Prerequisites>
23+
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[17.0,)" DisplayName="Visual Studio core editor" />
24+
<Prerequisite Id="Microsoft.VisualStudio.Component.Roslyn.LanguageServices" Version="[17.0,)" DisplayName="Roslyn Language Services" />
25+
</Prerequisites>
26+
</PackageManifest>

0 commit comments

Comments
 (0)