|
11 | 11 | <PlatformTarget>x64</PlatformTarget> |
12 | 12 | <ImplicitUsings>enable</ImplicitUsings> |
13 | 13 | <GenerateAssemblyInfo>false</GenerateAssemblyInfo> |
| 14 | + <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> |
| 15 | + <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> |
14 | 16 | </PropertyGroup> |
15 | | - |
| 17 | + |
16 | 18 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> |
17 | 19 | <DebugSymbols>true</DebugSymbols> |
18 | 20 | <DebugType>embedded</DebugType> |
|
29 | 31 | <OutputPath>bin\Release\</OutputPath> |
30 | 32 | <WarningLevel>4</WarningLevel> |
31 | 33 | </PropertyGroup> |
32 | | - |
| 34 | + |
33 | 35 | <ItemGroup> |
34 | 36 | <Reference Include="0Harmony"> |
35 | 37 | <HintPath>$(SL_DEV_REFERENCES)\0Harmony.dll</HintPath> |
|
64 | 66 | </Reference> |
65 | 67 | </ItemGroup> |
66 | 68 |
|
| 69 | + <!-- QoL moving the dll --> |
67 | 70 | <Target Name="PostBuild" AfterTargets="PostBuildEvent"> |
68 | 71 | <Copy SourceFiles="$(TargetDir)SER.dll" DestinationFolder="$(LABAPI_PLUGINS)" /> |
69 | 72 | <Copy SourceFiles="$(TargetDir)SER.dll" DestinationFolder="$(SL_DEV_REFERENCES)" /> |
70 | 73 | </Target> |
71 | | - |
| 74 | + |
72 | 75 | <ItemGroup> |
73 | 76 | <None Include="App.config" /> |
74 | 77 | <None Include="packages.config" /> |
75 | 78 | <None Include="SER.sln.DotSettings.user" /> |
76 | 79 | <Content Include=".gitignore" /> |
77 | 80 | <Content Include="README.md" /> |
| 81 | + <None Include="THIRD_PARTY_LICENSES.txt" CopyToOutputDirectory="Always" /> |
78 | 82 | </ItemGroup> |
79 | | - |
80 | | - <ItemGroup> |
81 | | - <PackageReference Include="AudioPlayerApi" Version="1.1.2" /> |
82 | | - <PackageReference Include="Costura.Fody" Version="6.0.0" PrivateAssets="All" /> |
83 | | - <PackageReference Include="Fody" Version="6.9.3" /> |
84 | | - <PackageReference Include="ncalc" Version="1.3.8" /> |
85 | | - </ItemGroup> |
86 | 83 |
|
87 | | - <!-- older versions of packages use different versions of these --> |
88 | | - <!-- this forces them to use the newest, silencing the warnings --> |
| 84 | + <!-- ignore warnings about mismatch between versions of core libs --> |
| 85 | + <PropertyGroup> |
| 86 | + <NoWarn>$(NoWarn);MSB3277</NoWarn> |
| 87 | + </PropertyGroup> |
| 88 | + |
| 89 | + <!-- nuget refs --> |
89 | 90 | <ItemGroup> |
90 | | - <PackageReference Include="System.Memory" Version="4.6.0" /> |
91 | | - <PackageReference Include="System.Numerics.Vectors" Version="4.6.0" /> |
92 | | - <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.0" /> |
| 91 | + <PackageReference Include="AudioPlayerApi" Version="1.1.2" /> |
| 92 | + <PackageReference Include="NCalc" Version="1.3.8" /> |
| 93 | + <PackageReference Include="Newtonsoft.Json" Version="13.0.4" /> |
93 | 94 | </ItemGroup> |
| 95 | + |
| 96 | + <Target Name="EmbedSelectedDependencies" AfterTargets="ResolveReferences"> |
| 97 | + <ItemGroup> |
| 98 | + <EmbeddedResource Include="@(ReferenceCopyLocalPaths)" |
| 99 | + Condition="'%(Extension)' == '.dll' and |
| 100 | + ( '%(ReferenceCopyLocalPaths.NuGetPackageId)' == 'NCalc' or |
| 101 | + '%(ReferenceCopyLocalPaths.NuGetPackageId)' == 'AudioPlayerApi' or |
| 102 | + '%(ReferenceCopyLocalPaths.NuGetPackageId)' == 'Newtonsoft.Json' )" /> |
| 103 | + </ItemGroup> |
| 104 | + </Target> |
| 105 | + |
94 | 106 | </Project> |
0 commit comments