docs(plugin): remove unsolicited Go cache instructions
This commit is contained in:
@@ -6,8 +6,6 @@
|
||||
|
||||
## 开发构建
|
||||
|
||||
外部 PowerShell 终端从 `go` 目录执行 `. .\env.ps1`,将当前终端的 Go 缓存设为 `go/.cache/go-build`,不修改用户级 Go 配置。VS Code 可在工作区 `terminal.integrated.env.windows` 和 `go.toolsEnvVars` 中配置同一路径,让本项目的新终端自动生效。
|
||||
|
||||
```powershell
|
||||
# Go
|
||||
Push-Location .\go
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
<Target Name="PrepareBD2GameSdk" BeforeTargets="ResolveProjectReferences;ResolveAssemblyReferences">
|
||||
<Error Condition="'$(GameDir)' == '' and '$(BD2ManagedDir)' == ''" Text="Set BD2LocalGameDir in plugins/Directory.Build.local.props, or pass -p:GameDir=<game-directory>." />
|
||||
<Error Condition="!Exists('$(BD2ManagedDir)/Assembly-CSharp.dll')" Text="Assembly-CSharp.dll missing in $(BD2ManagedDir). Set GameDir or BD2ManagedDir." />
|
||||
<Exec Condition="'$(DesignTimeBuild)' != 'true' or !Exists('$(BD2SdkTool)')" Command="dotnet build "$(BD2SdkProject)" -c $(BD2SdkConfiguration) --nologo" />
|
||||
<Exec EnvironmentVariables="BD2_GAME_SDK_CACHE=$(BD2GameSdkCache)" Command="dotnet "$(BD2SdkTool)" prepare-embedded "$(BD2ManagedDir)/Assembly-CSharp.dll" "$(BD2SdkDir)" "$(BD2VersionConfig)"" />
|
||||
<Exec StdOutEncoding="utf-8" StdErrEncoding="utf-8" Condition="'$(DesignTimeBuild)' != 'true' or !Exists('$(BD2SdkTool)')" Command="dotnet build "$(BD2SdkProject)" -c $(BD2SdkConfiguration) --nologo" />
|
||||
<Exec StdOutEncoding="utf-8" StdErrEncoding="utf-8" EnvironmentVariables="BD2_GAME_SDK_CACHE=$(BD2GameSdkCache)" Command="dotnet "$(BD2SdkTool)" prepare-embedded "$(BD2ManagedDir)/Assembly-CSharp.dll" "$(BD2SdkDir)" "$(BD2VersionConfig)"" />
|
||||
</Target>
|
||||
<Target Name="ReobfuscateBD2Plugin" AfterTargets="Build" Condition="'$(DesignTimeBuild)' != 'true' and '$(SkipCompilerExecution)' != 'true'">
|
||||
<Exec Command="dotnet "$(BD2SdkTool)" reobf "$(BD2SdkDir)\names.json" "$(IntermediateOutputPath)$(TargetFileName)" "$(TargetPath)" "$(BD2ManagedDir)\Assembly-CSharp.dll" "$(BD2BepInExDir)\core"" />
|
||||
<Exec StdOutEncoding="utf-8" StdErrEncoding="utf-8" Command="dotnet "$(BD2SdkTool)" reobf "$(BD2SdkDir)\names.json" "$(IntermediateOutputPath)$(TargetFileName)" "$(TargetPath)" "$(BD2ManagedDir)\Assembly-CSharp.dll" "$(BD2BepInExDir)\core"" />
|
||||
<Delete Files="$(TargetDir)$(TargetName).pdb" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
<!-- The navigation cache hashes this DLL. Unrelated repository commits
|
||||
must not change it through informational-version metadata. -->
|
||||
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
|
||||
<!-- Source Link embeds commit URLs in the tool PDB. Its checksum is also
|
||||
embedded in this DLL, so it must not vary with unrelated commits. -->
|
||||
<EnableSourceLink>false</EnableSourceLink>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="ICSharpCode.Decompiler" Version="9.1.0.7988" />
|
||||
|
||||
@@ -24,11 +24,11 @@
|
||||
<Error Condition="'$(GameDir)' == '' and '$(BD2ManagedDir)' == '/BrownDust II_Data/Managed'" Text="BD2.GameSdk: set GameDir in Directory.Build.props or pass -p:GameDir=<game-directory>." />
|
||||
<Error Condition="!Exists('$(BD2ManagedDir)/Assembly-CSharp.dll')" Text="BD2.GameSdk: Assembly-CSharp.dll missing in $(BD2ManagedDir). Set GameDir or BD2ManagedDir." />
|
||||
<Error Condition="'$(BD2AddBepInExReferences)' != 'false' and !Exists('$(BD2BepInExDir)/core/BepInEx.dll')" Text="BD2.GameSdk: install BepInEx or set BD2BepInExDir. Custom hosts can disable BD2AddBepInExReferences." />
|
||||
<Exec EnvironmentVariables="BD2_GAME_SDK_CACHE=$(BD2GameSdkCache)" Command="dotnet "$(BD2SdkTool)" prepare-embedded "$(BD2ManagedDir)/Assembly-CSharp.dll" "$(BD2SdkDir)"" />
|
||||
<Exec StdOutEncoding="utf-8" StdErrEncoding="utf-8" EnvironmentVariables="BD2_GAME_SDK_CACHE=$(BD2GameSdkCache)" Command="dotnet "$(BD2SdkTool)" prepare-embedded "$(BD2ManagedDir)/Assembly-CSharp.dll" "$(BD2SdkDir)"" />
|
||||
</Target>
|
||||
<Target Name="ReobfuscateBD2Plugin" AfterTargets="Build"
|
||||
Condition="'$(BD2GameSdkEnabled)' == 'true' and '$(DesignTimeBuild)' != 'true' and '$(IsCrossTargetingBuild)' != 'true'">
|
||||
<Exec Command="dotnet "$(BD2SdkTool)" reobf "$(BD2SdkDir)/names.json" "$(IntermediateOutputPath)$(TargetFileName)" "$(TargetPath)" "$(BD2ManagedDir)/Assembly-CSharp.dll" "$(BD2BepInExDir)/core"" />
|
||||
<Exec StdOutEncoding="utf-8" StdErrEncoding="utf-8" Command="dotnet "$(BD2SdkTool)" reobf "$(BD2SdkDir)/names.json" "$(IntermediateOutputPath)$(TargetFileName)" "$(TargetPath)" "$(BD2ManagedDir)/Assembly-CSharp.dll" "$(BD2BepInExDir)/core"" />
|
||||
<Delete Files="$(TargetDir)$(TargetName).pdb" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user