Skip to content

Commit 1514d15

Browse files
authored
Enable VSCode/Razor compat when using resxcode generator
1 parent c7235d7 commit 1514d15

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Directory.Build.targets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@
9494
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(BUDDY_EXECUTION_BRANCH)' != ''">$(BUDDY_EXECUTION_BRANCH)</RepositoryBranch>
9595
</PropertyGroup>
9696

97+
<PropertyGroup Condition="'$(EnableRexCodeGenerator)' == 'true'">
98+
<!-- VSCode/Razor compatibility -->
99+
<CoreCompileDependsOn>PrepareResources;$(CoreCompileDependsOn)</CoreCompileDependsOn>
100+
</PropertyGroup>
101+
97102
<ItemGroup>
98103
<!-- Consider the project out of date if any of these files changes -->
99104
<UpToDateCheck Include="@(None);@(Content);@(EmbeddedResource)" />

0 commit comments

Comments
 (0)