代码拉取完成,页面将自动刷新
<?xml version="1.0"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProtoBaseDir>..\..\protobuf</ProtoBaseDir>
<PatcherDir>..\..\scripts\patcher</PatcherDir>
<PatcherProjectName>AElf.Contracts.Deployer</PatcherProjectName>
</PropertyGroup>
<ItemGroup>
<None Include="$(ProtoBaseDir)\aelf\*">
<Link>Protobuf/Proto/aelf/*</Link>
</None>
</ItemGroup>
<Choose>
<When Condition="!$([MSBuild]::IsOsPlatform(Windows))">
<PropertyGroup>
<GenerateContractBaseCommand>../../scripts/generate_contract_base.sh</GenerateContractBaseCommand>
<GenerateContractCodeCommand>../../scripts/generate_contract_code.sh</GenerateContractCodeCommand>
<GenerateContractReferenceCommand>../../scripts/generate_contract_reference.sh</GenerateContractReferenceCommand>
<GenerateContractStubCommand>../../scripts/generate_contract_stub.sh</GenerateContractStubCommand>
<GenerateContractMessageCommand>../../scripts/generate_event_only.sh</GenerateContractMessageCommand>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<GenerateContractBaseCommand>..\..\scripts\generate_contract_base.bat</GenerateContractBaseCommand>
<GenerateContractCodeCommand>..\..\scripts\generate_contract_code.bat</GenerateContractCodeCommand>
<GenerateContractReferenceCommand>..\..\scripts\generate_contract_reference.bat</GenerateContractReferenceCommand>
<GenerateContractStubCommand>..\..\scripts\generate_contract_stub.bat</GenerateContractStubCommand>
<GenerateContractMessageCommand>..\..\scripts\generate_event_only.bat</GenerateContractMessageCommand>
</PropertyGroup>
</Otherwise>
</Choose>
<Target Name="GenerateProtobufCode" BeforeTargets="BeforeBuild;GetTargetPath">
<PropertyGroup>
<LocalProtobufDir>$(ProjectDir)/Protobuf</LocalProtobufDir>
<GenerateContractInternalCommand>protoc --proto_path=../../protobuf --csharp_out=internal_access:$(LocalProtobufDir)/Generated --csharp_opt=file_extension=.g.cs</GenerateContractInternalCommand>
</PropertyGroup>
<PropertyGroup>
<LocalProtobufDir>$(ProjectDir)/Protobuf</LocalProtobufDir>
<GenerateCommonMessageCommand>protoc --proto_path=../../protobuf --csharp_out=$(LocalProtobufDir)/Generated --csharp_opt=file_extension=.g.cs</GenerateCommonMessageCommand>
</PropertyGroup>
<RemoveDir Directories="Protobuf\Generated" />
<MakeDir Condition="@(ContractInternal) != '' Or @(CommonMessage) != '' Or @(ContractBase) != '' Or @(ContractCode) != '' Or @(ContractReference) != '' Or @(ContractStub) != '' Or @(ContractMessage) != ''" Directories="$(LocalProtobufDir)/Generated"/>
<Exec Condition="@(ContractInternal) != ''" Command="$(GenerateContractInternalCommand) %(Identity)"/>
<Exec Condition="@(CommonMessage) != ''" Command="$(GenerateCommonMessageCommand) %(Identity)"/>
<Exec Condition="@(ContractBase) != ''" Command="$(GenerateContractBaseCommand) %(Identity)"/>
<Exec Condition="@(ContractCode) != ''" Command="$(GenerateContractCodeCommand) %(Identity)"/>
<Exec Condition="@(ContractReference) != ''" Command="$(GenerateContractReferenceCommand) %(Identity)"/>
<Exec Condition="@(ContractStub) != ''" Command="$(GenerateContractStubCommand) %(Identity)"/>
<Exec Condition="@(ContractMessage) != ''" Command="$(GenerateContractMessageCommand) %(Identity)"/>
<ItemGroup>
<Compile Remove="Protobuf/Generated/*.cs"/>
<Compile Include="Protobuf/Generated/*.cs"/>
</ItemGroup>
</Target>
<!-- Build patcher before building the contract -->
<Target Name="PatcherBuild" BeforeTargets="BeforeBuild">
<MSBuild Condition="'$(IsContract)' != '' AND '$(IsContract)'"
Projects="$(ProjectDir)/../../src/$(PatcherProjectName)/$(PatcherProjectName).csproj"/>
</Target>
<!-- Patch the contract dll after building the contract -->
<Target Name="PatchContractCode" Condition="'$(IsContract)' != '' AND '$(IsContract)'" AfterTargets="AfterBuild">
<Exec Condition="'$(PatchOverwrite)' != '' AND '$(PatchOverwrite)'"
WorkingDirectory = "$(PatcherDir)"
Command="dotnet $(PatcherProjectName).dll -overwrite $(TargetDir)$(TargetName).dll"
ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" ItemName="PatchContractCodeOutput" />
</Exec>
<Exec Condition="'$(PatchOverwrite)' == '' OR !'$(PatchOverwrite)'"
WorkingDirectory = "$(PatcherDir)"
Command="dotnet $(PatcherProjectName).dll $(TargetDir)$(TargetName).dll"
ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" ItemName="PatchContractCodeOutput" />
</Exec>
<Message Text="$(PatchContractCodeOutput)"/>
</Target>
<!-- Move dlls before codecov injection in travis -->
<Target Name="CopyNonCodeCovContractDll" Condition="'$(IsContract)' != '' AND '$(IsContract)'" AfterTargets="PatchContractCode">
<Copy SourceFiles="$(TargetDir)$(TargetName).dll"
DestinationFolder="../../test/AElf.CSharp.CodeOps.Tests/contracts"
SkipUnchangedFiles="true" />
<PropertyGroup>
<LauncherTargetDir>../../src/AElf.Launcher/contracts</LauncherTargetDir>
</PropertyGroup>
<Copy SourceFiles="$(TargetDir)$(TargetName).dll"
DestinationFolder="$(LauncherTargetDir)"
SkipUnchangedFiles="true" />
<Copy Condition="Exists('$(TargetDir)$(TargetName).dll.patched')"
SourceFiles="$(TargetDir)$(TargetName).dll.patched"
DestinationFolder="../../test/AElf.CSharp.CodeOps.Tests/contracts"
SkipUnchangedFiles="true" />
</Target>
<!-- Copy patched contract dll after publish to include in publish directory -->
<Target Name="CopyPatchedContractCodeToPublish" AfterTargets="Publish">
<Copy Condition="'$(IsContract)' != '' AND '$(IsContract)' AND Exists('$(TargetDir)$(TargetName).dll.patched')"
SourceFiles="$(TargetDir)$(TargetName).dll.patched"
DestinationFiles="$(PublishDir)/$(TargetName).dll"
SkipUnchangedFiles="true" />
</Target>
</Project>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。