-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathClaudeCodeExtension.csproj
More file actions
221 lines (221 loc) · 11.7 KB
/
Copy pathClaudeCodeExtension.csproj
File metadata and controls
221 lines (221 loc) · 11.7 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<SchemaVersion>2.0</SchemaVersion>
<ProjectTypeGuids>{82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<ProjectGuid>{75253A84-A760-4061-9885-42A4DAF4B995}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ClaudeCodeExtension</RootNamespace>
<AssemblyName>ClaudeCodeExtension</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<GeneratePkgDefFile>true</GeneratePkgDefFile>
<UseCodebase>true</UseCodebase>
<IncludeAssemblyInVSIXContainer>true</IncludeAssemblyInVSIXContainer>
<IncludeDebugSymbolsInVSIXContainer>false</IncludeDebugSymbolsInVSIXContainer>
<IncludeDebugSymbolsInLocalVSIXDeployment>false</IncludeDebugSymbolsInLocalVSIXDeployment>
<CopyBuildOutputToOutputDirectory>true</CopyBuildOutputToOutputDirectory>
<CopyOutputSymbolsToOutputDirectory>true</CopyOutputSymbolsToOutputDirectory>
<StartAction>Program</StartAction>
<StartProgram Condition="'$(DevEnvDir)' != ''">$(DevEnvDir)devenv.exe</StartProgram>
<StartArguments>/rootsuffix Exp</StartArguments>
<!-- F5 / Ctrl+F5 debugging: the VSSDK targets default DeployExtension to false, so without these
two the experimental hive never receives the extension and the Exp instance comes up empty.
Deploy for Debug *and* Release, so Ctrl+F5 on a Release build updates the Exp hive too, but
only when building inside Visual Studio — command-line builds (test.cmd, publish.cmd) stay
side-effect free; deploy-exp.cmd passes -p:DeployExtension=true explicitly. -->
<VSSDKTargetPlatformRegRootSuffix>Exp</VSSDKTargetPlatformRegRootSuffix>
<DeployExtension Condition="'$(DeployExtension)' == '' and '$(BuildingInsideVisualStudio)' == 'true'">true</DeployExtension>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Compile Include="Agents\AcpCommandBuilder.cs" />
<Compile Include="Agents\AcpSession.cs" />
<Compile Include="Agents\AgentEvent.cs" />
<Compile Include="Agents\ClaudeCommandBuilder.cs" />
<Compile Include="Agents\ClaudeStreamJsonSession.cs" />
<Compile Include="Agents\ClaudeStreamParser.cs" />
<Compile Include="Agents\CodexExecProtocol.cs" />
<Compile Include="Agents\CursorAgentProtocol.cs" />
<Compile Include="Agents\IAgentSession.cs" />
<Compile Include="Agents\JsonLineProcessHost.cs" />
<Compile Include="Agents\OneShotResumeSession.cs" />
<Compile Include="Agents\PiRpcSession.cs" />
<Compile Include="Agents\PrintModeSession.cs" />
<Compile Include="Agents\ProcessTree.cs" />
<Compile Include="Controls\ClaudeCodeControl.cs" />
<Compile Include="Controls\ClaudeCodeControl.AgentCompletion.cs" />
<Compile Include="Controls\ClaudeCodeControl.AgentFinishDialog.cs" />
<Compile Include="Controls\ClaudeCodeControl.AtMention.cs" />
<Compile Include="Controls\ClaudeCodeControl.BuildErrors.cs" />
<Compile Include="Controls\ClaudeCodeControl.RuntimeErrors.cs" />
<Compile Include="Controls\ClaudeCodeControl.Cleanup.cs" />
<Compile Include="Controls\ClaudeCodeControl.CliPaths.cs" />
<Compile Include="Controls\ClaudeCodeControl.CustomCommands.cs" />
<Compile Include="Controls\ClaudeCodeControl.Detach.cs" />
<Compile Include="Controls\ClaudeCodeControl.Diff.cs" />
<Compile Include="Controls\ClaudeCodeControl.ImageHandling.cs" />
<Compile Include="Controls\ClaudeCodeControl.Interop.cs" />
<Compile Include="Controls\ClaudeCodeControl.ProviderManagement.cs" />
<Compile Include="Controls\ClaudeCodeControl.SessionHistory.cs" />
<Compile Include="Controls\ClaudeCodeControl.Settings.cs" />
<Compile Include="Controls\ClaudeCodeControl.SettingsDialog.cs" />
<Compile Include="Controls\ClaudeCodeControl.Terminal.cs" />
<Compile Include="Controls\ClaudeCodeControl.TerminalIO.cs" />
<Compile Include="Controls\ClaudeCodeControl.Theme.cs" />
<Compile Include="Controls\ClaudeCodeControl.Usage.cs" />
<Compile Include="Controls\ClaudeCodeControl.UserInput.cs" />
<Compile Include="Controls\ClaudeCodeControl.Workspace.cs" />
<Compile Include="Controls\ClaudeCodeControl.NativeMode.cs" />
<Compile Include="Controls\ClaudeCodeControl.NativeChat.cs" />
<Compile Include="Models\ClaudeCodeModels.cs" />
<Compile Include="UI\ChatMessages.cs" />
<Compile Include="UI\ChatInteractionViewModels.cs" />
<Compile Include="UI\ChatToolPresentation.cs" />
<Compile Include="UI\MarkdownFlowRenderer.cs" />
<Compile Include="UI\ChatTranscriptView.xaml.cs">
<DependentUpon>ChatTranscriptView.xaml</DependentUpon>
</Compile>
<Compile Include="ToolWindows\ClaudeCodeToolWindow.cs" />
<Compile Include="UI\ClaudeUsageControl.xaml.cs">
<DependentUpon>ClaudeUsageControl.xaml</DependentUpon>
</Compile>
<Compile Include="ToolWindows\ClaudeUsageToolWindow.cs" />
<Compile Include="ToolWindows\DetachedTerminalToolWindow.cs" />
<Compile Include="ToolWindows\NativeChatToolWindow.cs" />
<Compile Include="ToolWindows\DiffViewerToolWindow.cs" />
<Compile Include="UI\DiffViewerControl.xaml.cs">
<DependentUpon>DiffViewerControl.xaml</DependentUpon>
</Compile>
<Compile Include="Diff\ChangedFile.cs" />
<Compile Include="Diff\DiffComputer.cs" />
<Compile Include="Diff\FileChangeTracker.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Package\ClaudeCodeExtensionPackage.cs" />
<Compile Include="Package\SolutionEventsHandler.cs" />
</ItemGroup>
<ItemGroup>
<None Include="AGENTS.md" />
<None Include="CLAUDE.md" />
<None Include="deploy-exp.cmd" />
<None Include="docs\ARCHITECTURE.md" />
<None Include="publish.cmd" />
<None Include="publishManifest.json" />
<None Include="README.md" />
<None Include="source.extension.vsixmanifest">
<SubType>Designer</SubType>
</None>
<None Include="test.cmd" />
</ItemGroup>
<ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.Design" />
<Reference Include="System.Drawing" />
<Reference Include="System.Security" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xaml" />
<Reference Include="System.Xml" />
<Reference Include="UIAutomationClient" />
<Reference Include="UIAutomationTypes" />
<Reference Include="WindowsBase" />
<Reference Include="WindowsFormsIntegration" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.14.40265" ExcludeAssets="runtime" NoWarn="NU1604">
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="18.5.40034" NoWarn="NU1604">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="DiffPlex" Version="1.9.0" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.4078.44" />
</ItemGroup>
<ItemGroup>
<VSCTCompile Include="ClaudeCodeExtensionPackage.vsct">
<ResourceName>Menus.ctmenu</ResourceName>
</VSCTCompile>
</ItemGroup>
<ItemGroup>
<Page Include="UI\ChatStyles.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="UI\ClaudeCodeControl.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="UI\ChatTranscriptView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="UI\ClaudeUsageControl.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="UI\DiffViewerControl.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<Content Include=".gitignore" />
<Content Include="app.ico">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="docs\images\native-mode-diff.png" />
<Content Include="docs\images\native-mode-plan.png" />
<Content Include="docs\images\native-mode-question.png" />
<Content Include="LICENSE.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
<!-- Every deploy lands in a version-named folder (...\Claude Code Extension for Visual Studio\82.0),
so each version bump leaves the previous one behind. With two folders carrying the same VSIX
identity the experimental hive can keep loading the older assembly: that is what left the Exp
instance running 80.0 for days after 82.0 had already been deployed next to it, with no error
anywhere to explain it. Drop the siblings right after every deploy so it cannot recur.
ContinueOnError because an Exp instance left open holds a lock on its own binaries — a stale
folder is worth a warning, not a failed build. -->
<Target Name="RemoveStaleExpDeployments" AfterTargets="DeployVsixExtensionFiles" Condition="'$(DeployExtension)' == 'true' and '$(VsixDeploymentPath)' != ''">
<PropertyGroup>
<_ExpDeployDir>$(VsixDeploymentPath.TrimEnd('\'))</_ExpDeployDir>
<_ExpDeployParent>$([System.IO.Path]::GetDirectoryName('$(_ExpDeployDir)'))</_ExpDeployParent>
</PropertyGroup>
<ItemGroup>
<_ExpStaleDeploy Include="$(_ExpDeployParent)\*\extension.vsixmanifest" Exclude="$(_ExpDeployDir)\extension.vsixmanifest" />
</ItemGroup>
<Message Importance="high" Text="Removing stale Exp deployment: %(_ExpStaleDeploy.RootDir)%(_ExpStaleDeploy.Directory)" Condition="'@(_ExpStaleDeploy)' != ''" />
<RemoveDir Directories="@(_ExpStaleDeploy->'%(RootDir)%(Directory)')" Condition="'@(_ExpStaleDeploy)' != ''" ContinueOnError="true" />
</Target>
</Project>