mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
update example build for dotnet core
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
67bd90660e
commit
8bfeca063d
|
@ -2428,7 +2428,8 @@ class DotNetExampleComponent(ExampleComponent):
|
||||||
out.write(' ')
|
out.write(' ')
|
||||||
out.write(os.path.join(self.to_ex_dir, csfile))
|
out.write(os.path.join(self.to_ex_dir, csfile))
|
||||||
|
|
||||||
proj_path = os.path.join(BUILD_DIR, proj_name)
|
mk_dir(os.path.join(BUILD_DIR, 'dotnet_example'))
|
||||||
|
csproj = os.path.join('dotnet_example', proj_name)
|
||||||
if VS_X64:
|
if VS_X64:
|
||||||
platform = 'x64'
|
platform = 'x64'
|
||||||
elif VS_ARM:
|
elif VS_ARM:
|
||||||
|
@ -2443,18 +2444,18 @@ class DotNetExampleComponent(ExampleComponent):
|
||||||
<PlatformTarget>%s</PlatformTarget>
|
<PlatformTarget>%s</PlatformTarget>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="%s/*.cs" />
|
<Compile Include="..\%s/*.cs" />
|
||||||
<Reference Include="Microsoft.Z3">
|
<Reference Include="Microsoft.Z3">
|
||||||
<HintPath>Microsoft.Z3.dll</HintPath>
|
<HintPath>..\Microsoft.Z3.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>""" % (platform, self.to_ex_dir)
|
</Project>""" % (platform, self.to_ex_dir)
|
||||||
|
|
||||||
with open(proj_path, 'w') as ous:
|
with open(os.path.join(BUILD_DIR, csproj), 'w') as ous:
|
||||||
ous.write(dotnet_proj_str)
|
ous.write(dotnet_proj_str)
|
||||||
|
|
||||||
out.write('\n')
|
out.write('\n')
|
||||||
dotnetCmdLine = [DOTNET, "build", proj_name]
|
dotnetCmdLine = [DOTNET, "build", csproj]
|
||||||
dotnetCmdLine.extend(['-c'])
|
dotnetCmdLine.extend(['-c'])
|
||||||
if DEBUG_MODE:
|
if DEBUG_MODE:
|
||||||
dotnetCmdLine.extend(['Debug'])
|
dotnetCmdLine.extend(['Debug'])
|
||||||
|
|
Loading…
Reference in a new issue