|
|
@ -131,6 +131,7 @@ |
|
|
<AvaloniaXamlIlVerifyIl Condition="'$(AvaloniaXamlIlVerifyIl)' == ''">false</AvaloniaXamlIlVerifyIl> |
|
|
<AvaloniaXamlIlVerifyIl Condition="'$(AvaloniaXamlIlVerifyIl)' == ''">false</AvaloniaXamlIlVerifyIl> |
|
|
<AvaloniaXamlIlDebuggerLaunch Condition="'$(AvaloniaXamlIlDebuggerLaunch)' == ''">false</AvaloniaXamlIlDebuggerLaunch> |
|
|
<AvaloniaXamlIlDebuggerLaunch Condition="'$(AvaloniaXamlIlDebuggerLaunch)' == ''">false</AvaloniaXamlIlDebuggerLaunch> |
|
|
<AvaloniaXamlVerboseExceptions Condition="'$(AvaloniaXamlVerboseExceptions)' == ''">false</AvaloniaXamlVerboseExceptions> |
|
|
<AvaloniaXamlVerboseExceptions Condition="'$(AvaloniaXamlVerboseExceptions)' == ''">false</AvaloniaXamlVerboseExceptions> |
|
|
|
|
|
<_AvaloniaHasCompiledXaml>true</_AvaloniaHasCompiledXaml> |
|
|
</PropertyGroup> |
|
|
</PropertyGroup> |
|
|
<WriteLinesToFile |
|
|
<WriteLinesToFile |
|
|
Condition="'$(_AvaloniaForceInternalMSBuild)' != 'true'" |
|
|
Condition="'$(_AvaloniaForceInternalMSBuild)' != 'true'" |
|
|
@ -195,4 +196,25 @@ |
|
|
<Exec Command="dotnet exec --runtimeconfig "$(APreviewerRuntimeConfigPath)" --depsfile "$(APreviewerDepsJsonPath)" "$(AvaloniaPreviewerNetCoreToolPath)" --method html --html-url $(APreviewerUrl) --transport $(APreviewTransportUrl) "$(APreviewExecutable)""/> |
|
|
<Exec Command="dotnet exec --runtimeconfig "$(APreviewerRuntimeConfigPath)" --depsfile "$(APreviewerDepsJsonPath)" "$(AvaloniaPreviewerNetCoreToolPath)" --method html --html-url $(APreviewerUrl) --transport $(APreviewTransportUrl) "$(APreviewExecutable)""/> |
|
|
|
|
|
|
|
|
</Target> |
|
|
</Target> |
|
|
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
|
Deletes the target ref assembly before the CopyRefAssembly task (in target CopyFilesToOutputDirectory) tries to access it. |
|
|
|
|
|
|
|
|
|
|
|
CopyRefAssembly reads the ref assembly's MVID from the .mvid PE section to avoid copying if necessary. |
|
|
|
|
|
However, Cecil doesn't preserve that PE section: this results in a warning. |
|
|
|
|
|
By deleting the file beforehand, we're preventing the warning. |
|
|
|
|
|
There are no changes in behavior since CopyRefAssembly always copy the file if it couldn't read the MVID. |
|
|
|
|
|
--> |
|
|
|
|
|
<Target |
|
|
|
|
|
Name="AvaloniaDeleteRefAssemblyBeforeOutputCopy" |
|
|
|
|
|
BeforeTargets="CopyFilesToOutputDirectory" |
|
|
|
|
|
Condition=" |
|
|
|
|
|
'$(_AvaloniaHasCompiledXaml)' == 'true' and |
|
|
|
|
|
'$(TargetRefPath)' != '' and |
|
|
|
|
|
'$(ProduceReferenceAssembly)' == 'true' and |
|
|
|
|
|
('$(CopyBuildOutputToOutputDirectory)' == '' or '$(CopyBuildOutputToOutputDirectory)' == 'true') and |
|
|
|
|
|
'$(SkipCopyBuildProduct)' != 'true'"> |
|
|
|
|
|
<Delete Files="$(TargetRefPath)" Condition="Exists('$(TargetRefPath)')" /> |
|
|
|
|
|
</Target> |
|
|
|
|
|
|
|
|
</Project> |
|
|
</Project> |
|
|
|