How can I get cshtml intellisense in a non-web project? #414
Answered
by
jzabroski
VictorioBerra
asked this question in
Q&A
-
I target SDK csproj:<Project Sdk="Microsoft.NET.Sdk.Worker">
<PropertyGroup Label="Build">
<TargetFramework>net5.0</TargetFramework>
<UserSecretsId>redacted</UserSecretsId>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
</PropertyGroup>
...
<ItemGroup>
<None Remove="Templates\GenericEmail.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Templates\GenericEmail.cshtml" />
</ItemGroup>
I have declared it as an embedded resource. |
Beta Was this translation helpful? Give feedback.
Answered by
jzabroski
Jan 8, 2021
Replies: 1 comment 6 replies
-
Use a transitive project reference. Problem solved. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
VictorioBerra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use a transitive project reference. Problem solved.