Skip to content

Commit 292425a

Browse files
committed
Modified to App.Current because of the clean architecture model.
1 parent 7a7aad0 commit 292425a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ZirconNet.WPF.SourceGenerator/Mvvm/IocPageGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ namespace {{pageType.ContainingNamespace.ToDisplayString()}};
9090
9191
public partial class {{pageType.Name}}
9292
{
93-
private static IHost _appHost = ((App)Application.Current).Host;
93+
private static IHost _appHost = ((App)App.Current).Host;
9494
9595
{{propertyDeclarations}}
9696
}

src/ZirconNet.WPF.SourceGenerator/ZirconNet.WPF.SourceGenerator.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
<PrivateAssets>all</PrivateAssets>
4343
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4444
</PackageReference>
45-
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false"/>
45+
<None Remove="bin\Debug\netstandard2.0\\ZirconNet.WPF.SourceGenerator.dll" />
46+
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
4647
</ItemGroup>
4748
</Project>

0 commit comments

Comments
 (0)