Skip to content

Commit

Permalink
this might be the answer?
Browse files Browse the repository at this point in the history
  • Loading branch information
jmd authored and jmd committed Feb 6, 2024
1 parent fecd7c8 commit fcf2f4d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
5 changes: 5 additions & 0 deletions src/DotJEM.SourceGen.TemplateGenerator.Demo/Class1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
{
public class Class1
{
public void Test()
{
TextTemplates.TextFileFourTemplates_default("");
CSharpTemplates.TestOtherTemplates_default("");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

<!-- When the generator is added via NuGet, these should be present via the props file. -->
<!-- In other words, you do not need to import the props file when referencing the NuGet package. -->
<Import Project="..\DotJEM.SourceGen.TemplateGenerator\build\DotJem.SourceGen.props"/>
<Import Project="..\DotJEM.SourceGen.TemplateGenerator\build\DotJem.SourceGen.props" />

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<!--<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>Generated</CompilerGeneratedFilesOutputPath>-->
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<!--<CompilerGeneratedFilesOutputPath>Generated</CompilerGeneratedFilesOutputPath>-->
</PropertyGroup>

<PropertyGroup>
Expand All @@ -19,12 +19,6 @@
<!-- The visibility of the classes in which the constants are declared. -->
</PropertyGroup>

<ItemGroup>
<!-- Exclude the output of source generators from the compilation -->
<!--<Compile Remove="$(CompilerGeneratedFilesOutputPath)/**/*.cs" />
<None Include="$(CompilerGeneratedFilesOutputPath)/**/*.cs" />-->
</ItemGroup>


<ItemGroup>
<None Remove="HtmlFiles\*.html" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Foo @{arg} bar
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Foo @{arg} bar
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ public class MyFrameworkClassTest
[Test]
public void SayHello_ReturnsHello()
{
Assert.Fail();

SqlTemplates.SqlFileOneTemplates_default("");
Assert.That(TextTemplates.TextFileThreeTemplates_default("f"), Is.EqualTo(""));
}
}

0 comments on commit fcf2f4d

Please sign in to comment.