|
11 | 11 | <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
12 | 12 | <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
13 | 13 | <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
14 |
| - <RuntimeIdentifier>win</RuntimeIdentifier> |
15 | 14 | <UseWindowsForms>true</UseWindowsForms>
|
16 | 15 | <SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
17 | 16 | </PropertyGroup>
|
|
37 | 36 | <Prefer32Bit>false</Prefer32Bit>
|
38 | 37 | </PropertyGroup>
|
39 | 38 |
|
| 39 | + <Target Name="RemoveUnnecessaryRuntimesAfterBuild" AfterTargets="Build"> |
| 40 | + <RemoveDir Directories="$(OutputPath)runtimes\browser-wasm; |
| 41 | + $(OutputPath)runtimes\linux-arm; |
| 42 | + $(OutputPath)runtimes\linux-arm64; |
| 43 | + $(OutputPath)runtimes\linux-armel; |
| 44 | + $(OutputPath)runtimes\linux-mips64; |
| 45 | + $(OutputPath)runtimes\linux-musl-arm; |
| 46 | + $(OutputPath)runtimes\linux-musl-arm64; |
| 47 | + $(OutputPath)runtimes\linux-musl-x64; |
| 48 | + $(OutputPath)runtimes\linux-ppc64le; |
| 49 | + $(OutputPath)runtimes\linux-s390x; |
| 50 | + $(OutputPath)runtimes\linux-x64; |
| 51 | + $(OutputPath)runtimes\linux-x86; |
| 52 | + $(OutputPath)runtimes\maccatalyst-arm64; |
| 53 | + $(OutputPath)runtimes\maccatalyst-x64; |
| 54 | + $(OutputPath)runtimes\osx-arm64; |
| 55 | + $(OutputPath)runtimes\osx-x64"/> |
| 56 | + </Target> |
| 57 | + |
| 58 | + <Target Name="RemoveUnnecessaryRuntimesAfterPublish" AfterTargets="Publish"> |
| 59 | + <RemoveDir Directories="$(PublishDir)runtimes\browser-wasm; |
| 60 | + $(PublishDir)runtimes\linux-arm; |
| 61 | + $(PublishDir)runtimes\linux-arm64; |
| 62 | + $(PublishDir)runtimes\linux-armel; |
| 63 | + $(PublishDir)runtimes\linux-mips64; |
| 64 | + $(PublishDir)runtimes\linux-musl-arm; |
| 65 | + $(PublishDir)runtimes\linux-musl-arm64; |
| 66 | + $(PublishDir)runtimes\linux-musl-x64; |
| 67 | + $(PublishDir)runtimes\linux-ppc64le; |
| 68 | + $(PublishDir)runtimes\linux-s390x; |
| 69 | + $(PublishDir)runtimes\linux-x64; |
| 70 | + $(PublishDir)runtimes\linux-x86; |
| 71 | + $(PublishDir)runtimes\maccatalyst-arm64; |
| 72 | + $(PublishDir)runtimes\maccatalyst-x64; |
| 73 | + $(PublishDir)runtimes\osx-arm64; |
| 74 | + $(PublishDir)runtimes\osx-x64"/> |
| 75 | + </Target> |
| 76 | + |
40 | 77 | <ItemGroup>
|
41 | 78 | <None Include="plugin.json">
|
42 | 79 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
0 commit comments