Skip to content

Commit

Permalink
Правка сборки
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilBeaver committed Nov 12, 2024
1 parent 89ce0d6 commit 3e62436
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,25 @@
<Target Name="BuildDebugger">
<PropertyGroup>
<DebuggerProject>src/VSCode.DebugAdapter/VSCode.DebugAdapter.csproj</DebuggerProject>
<LocalResolvedOutput>$(DebugAdapterDir)/bin</LocalResolvedOutput>
<DebugSrc>$(DebugAdapterDir)/tmp</DebugSrc>
</PropertyGroup>

<MSBuild Projects="$(DebuggerProject)" Properties="OutputPath=$(LocalResolvedOutput);Configuration=Release"/>
<MSBuild Projects="$(DebuggerProject)" Properties="OutputPath=$(DebugSrc);Configuration=Release"/>

<ItemGroup>
<DbgBinFiles Include="$(DebugSrc)/*.dll"/>
<DbgBinFiles Include="$(DebugSrc)/*.exe"/>
<DbgBinFiles Include="$(DebugSrc)/*.config"/>
<DbgPackageFiles Include="$(DebugSrc)/README.md"/>
<DbgPackageFiles Include="$(DebugSrc)/package.json"/>
<DbgImageFiles Include="$(DebugSrc)/images/**"/>
</ItemGroup>

<Copy SourceFiles="@(DbgBinFiles)" DestinationFolder="$(DebugAdapterDir)/bin"/>
<Copy SourceFiles="@(DbgPackageFiles)" DestinationFolder="$(DebugAdapterDir)"/>
<Copy SourceFiles="@(DbgImageFiles)" DestinationFolder="$(DebugAdapterDir)/images"/>

<RemoveDir Directories="$(DebugSrc)"/>

</Target>

Expand Down
12 changes: 12 additions & 0 deletions src/VSCode.DebugAdapter/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,16 @@
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
<!--
Секция appSettings позволяет настроить логирование отладки с помощью Serilog
Для конкретных настроек и их значений обращайтесь к справке Serilog
https://github.com/serilog/serilog/wiki/Configuration-Basics
-->
<!-- Пример включения лога с уровнем подробности Debug, записываемого в файл
<appSettings>
<add key="serilog:minimum-level" value="Debug" />
<add key="serilog:using:File" value="Serilog.Sinks.File" />
<add key="serilog:write-to:File.path" value="OneScript.Debugger.log" />
</appSettings>
-->
</configuration>

0 comments on commit 3e62436

Please sign in to comment.