|
13 | 13 | <GenerateDocumentationFile>True</GenerateDocumentationFile> |
14 | 14 | </PropertyGroup> |
15 | 15 |
|
16 | | - <ItemGroup> |
17 | | - <None Update="Info.json"> |
18 | | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
19 | | - </None> |
20 | | - </ItemGroup> |
| 16 | + <Target Name="GenerateInfoJson" AfterTargets="Build" BeforeTargets="CreateReleaseZip"> |
| 17 | + <PropertyGroup> |
| 18 | + <InfoJsonContent> |
| 19 | +{ |
| 20 | + "Id": "RuntimeUnityEditor", |
| 21 | + "DisplayName": "Runtime Unity Editor", |
| 22 | + "Author": "Vanguard, ManlyMarco", |
| 23 | + "Version": "$(Version)", |
| 24 | + "ManagerVersion": "0.27.2", |
| 25 | + "AssemblyName": "RuntimeUnityEditor.UMM.dll", |
| 26 | + "EntryMethod": "RuntimeUnityEditor.UMM.RuntimeUnityEditorUMM.Load", |
| 27 | + "Repository": "https://raw.githubusercontent.com/ManlyMarco/RuntimeUnityEditor/master/RuntimeUnityEditor.UMM/Repository.json", |
| 28 | + "HomePage": "https://github.com/ManlyMarco/RuntimeUnityEditor" |
| 29 | +} |
| 30 | + </InfoJsonContent> |
| 31 | + </PropertyGroup> |
| 32 | + <WriteLinesToFile File="$(OutputPath)Info.json" Lines="$(InfoJsonContent)" Overwrite="true" /> |
| 33 | + </Target> |
21 | 34 |
|
22 | 35 | <Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> |
23 | 36 | <Delete Files="$(OutputPath)\mcs.pdb" /> |
|
44 | 57 | <Target Name="_ResolveCopyLocalNuGetPkgXmls" AfterTargets="ResolveReferences"> |
45 | 58 | <ItemGroup> |
46 | 59 | <!-- Copy XML files from all PackageReferences to output dir --> |
47 | | - <ReferenceCopyLocalPaths Include="@(ReferenceCopyLocalPaths->'%(RootDir)%(Directory)%(Filename).xml')" |
48 | | - Condition="'%(ReferenceCopyLocalPaths.NuGetPackageId)'!='' and Exists('%(RootDir)%(Directory)%(Filename).xml')" /> |
| 60 | + <ReferenceCopyLocalPaths Include="@(ReferenceCopyLocalPaths->'%(RootDir)%(Directory)%(Filename).xml')" Condition="'%(ReferenceCopyLocalPaths.NuGetPackageId)'!='' and Exists('%(RootDir)%(Directory)%(Filename).xml')" /> |
49 | 61 | </ItemGroup> |
50 | 62 | </Target> |
51 | 63 |
|
|
0 commit comments