Skip to content

Commit d0a638d

Browse files
committed
Fix the resources' designer association in VS (partially -- still doesn't auto-update)
1 parent 6f2a131 commit d0a638d

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

Rubberduck.Resources/Rubberduck.Resources.csproj

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,17 @@
88
</PropertyGroup>
99
<Import Project="..\RubberduckBaseProject.csproj" />
1010
<ItemGroup>
11-
<Resource Include="**\*.png" />
12-
<Resource Include="**\*.bmp" />
11+
<Resource Include="**\*.png" Exclude="$(IntermediateOutputPath)\**" />
12+
<Resource Include="**\*.bmp" Exclude="$(IntermediateOutputPath)\**" />
1313
<Resource Include="**\*.txt" Exclude="$(IntermediateOutputPath)\**" />
1414
</ItemGroup>
1515
<ItemGroup>
16-
<Compile Update="Templates.Designer.cs">
17-
<DesignTime>True</DesignTime>
18-
<AutoGen>True</AutoGen>
19-
<DependentUpon>Templates.resx</DependentUpon>
20-
</Compile>
21-
</ItemGroup>
22-
<ItemGroup>
23-
<EmbeddedResource Update="Templates.resx">
16+
<Resource Update="**\*.resx">
2417
<Generator>PublicResXFileCodeGenerator</Generator>
25-
<LastGenOutput>Templates.Designer.cs</LastGenOutput>
26-
</EmbeddedResource>
18+
<LastGenOutput>$([System.String]::Copy('%(FileName)')).Designer.cs</LastGenOutput>
19+
</Resource>
20+
<Compile Update="**\*.Designer.cs">
21+
<DependentUpon>$([System.String]::Copy('%(Filename)').Replace('.Designer', '')).resx</DependentUpon>
22+
</Compile>
2723
</ItemGroup>
2824
</Project>

0 commit comments

Comments
 (0)