mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-03-02 19:13:34 +00:00
build fails if weaver fails
This commit is contained in:
parent
bf2a9223dd
commit
63efda975b
@ -70,7 +70,7 @@ namespace MirrorWeaver
|
||||
var weaver = new Weaver(log);
|
||||
if (!weaver.Weave(assembly, resolver, out _))
|
||||
{
|
||||
throw new Exception("weaving failed");
|
||||
Environment.Exit(1);
|
||||
}
|
||||
|
||||
assembly.Write(new WriterParameters { WriteSymbols = true });
|
||||
|
@ -15,11 +15,11 @@
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
</PropertyGroup>
|
||||
<Target Name="weave qsb" BeforeTargets="PostBuildEvent" Condition="Exists($(GameDir))">
|
||||
<Exec Command='"$(SolutionDir)\MirrorWeaver\bin\$(Configuration)\MirrorWeaver" "$(OutputPath)\QSB.dll" "$(GameDir)"' />
|
||||
</Target>
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent Condition="Exists($(UnityAssetsDir)) and Exists($(GameDir)) and Exists($(OwmlDir))">
|
||||
:: weave qsb
|
||||
"$(SolutionDir)\MirrorWeaver\bin\$(Configuration)\MirrorWeaver" "$(OutputPath)\QSB.dll" "$(GameDir)"
|
||||
|
||||
:: copy output to unity project
|
||||
copy /y "$(OutputPath)" "$(UnityAssetsDir)"
|
||||
:: copy game assembly to unity project
|
||||
|
Loading…
x
Reference in New Issue
Block a user