Skip to content

Commit 6eb5815

Browse files
authored
Fix debugging VS2022 extension (#884)
***NO_CI***
1 parent 0f025ba commit 6eb5815

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

VisualStudio.Extension-2022/Properties/AssemblyInfo.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
[assembly: AssemblyCopyright("Copyright © 2019 .NET nanoFramework contributors")]
1616
[assembly: System.CLSCompliant(false)]
1717

18+
#if DEBUG
19+
// for debug build need to set these so binding redirects allow loading the correct library
20+
[assembly: AssemblyVersion("9.99.999.0")]
21+
[assembly: AssemblyFileVersion("9.99.999.0")]
22+
[assembly: AssemblyInformationalVersion("9.99.999.0-DEBUG")]
23+
#endif
24+
1825
[assembly: ProvideCodeBase(
1926
AssemblyName = @"CommunityToolkit.Mvvm",
2027
CodeBase = @"$PackageFolder$\CommunityToolkit.Mvvm.dll")]

VisualStudio.Extension-2022/VisualStudio.Extension-vs2022.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
<StartProgram Condition="'$(DevEnvDir)' != ''">$(DevEnvDir)devenv.exe</StartProgram>
3636
<StartArguments>/rootSuffix Exp</StartArguments>
3737
<NF_Build_VS2022>True</NF_Build_VS2022>
38+
<!-- Don't generate version info for local builds -->
39+
<GenerateAssemblyVersionInfo Condition="'$(Configuration)' == 'Debug'">false</GenerateAssemblyVersionInfo>
3840
</PropertyGroup>
3941
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
4042
<DebugSymbols>true</DebugSymbols>
@@ -143,6 +145,8 @@
143145
<IncludeInVSIX>true</IncludeInVSIX>
144146
</Content>
145147
<Resource Include="Resources\Reboot.16.16.png" />
148+
<!-- Only Include app.config for local debugging -->
149+
<None Include="app.config" Condition="'$(Configuration)' == 'Debug'" />
146150
<None Include="Key.snk" />
147151
<None Include="packages.lock.json" />
148152
<None Include="source.extension.vsixmanifest">
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<runtime>
4+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
5+
<dependentAssembly>
6+
<assemblyIdentity name="nanoFramework.Tools.VS2022.Extension" publicKeyToken="c07d481e9758c731" culture="neutral" />
7+
<bindingRedirect oldVersion="0.0.0.0-9.99.999.0" newVersion="9.99.999.0" />
8+
</dependentAssembly>
9+
</assemblyBinding>
10+
</runtime>
11+
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /></startup></configuration>

0 commit comments

Comments
 (0)