|
5 | 5 | <RootNamespace>OpenTK.Graphics</RootNamespace> |
6 | 6 | <SignAssembly>true</SignAssembly> |
7 | 7 | <AssemblyOriginatorKeyFile>../../OpenTK.snk</AssemblyOriginatorKeyFile> |
8 | | - <DelaySign>True</DelaySign> |
| 8 | + <DelaySign>true</DelaySign> |
9 | 9 | </PropertyGroup> |
10 | 10 |
|
11 | 11 | <!-- This article is useful for generating code: --> |
|
25 | 25 | <ProjectReference Include="..\Generator.Rewrite\Generator.Rewrite.csproj" SkipGetTargetFrameworkProperties="true" UndefineProperties="TargetFramework" ReferenceOutputAssembly="false" ExcludeAssets="all" /> |
26 | 26 | </ItemGroup> |
27 | 27 |
|
28 | | - <ItemGroup> |
29 | | - <PackageReference Include="Microsoft.Build.Tasks.Core" Version="17.1.0" ExcludeAssets="runtime" /> |
30 | | - </ItemGroup> |
31 | | - |
32 | 28 | <!-- Define what files we depend on and which files are generated --> |
33 | 29 | <ItemGroup> |
34 | 30 | <GLSpec Include="..\gl.xml" /> |
|
93 | 89 | <!-- We do this in DispatchToInnerBuilds so we do this so the target is only run once in contrast to task that runs before 'Rewrite' which get run multiple times for each target framework. --> |
94 | 90 | <!-- - Noggin_bops 2024-11-27 --> |
95 | 91 | <Target Name="GetSNPath" BeforeTargets="Rewrite"> |
96 | | - <GetFrameworkSdkPath> |
| 92 | + <!-- FIXME: This is a BAD hack, but it's the best I've got to make "dotnet build" and AppVeyor work... Ideally we'd use GetFrameworkSdkPath but that is only available in .net framework? --> |
| 93 | + <!-- - Noggin_bops 2024-11-27 --> |
| 94 | + <PropertyGroup Condition="'$(OS)' == 'Windows_NT'"> |
| 95 | + <SNPath>C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\sn.exe</SNPath> |
| 96 | + </PropertyGroup> |
| 97 | + <!-- FIXME: This is untested on both macOS and Linux, no idea if it works... --> |
| 98 | + <!-- - Noggin_bops 2024-11-27 --> |
| 99 | + <PropertyGroup Condition="'$(OS)' != 'Windows_NT'"> |
| 100 | + <SNPath>/usr/bin/sn</SNPath> |
| 101 | + </PropertyGroup> |
| 102 | + <Error Text="Could not find path to sn.exe (FIXME: for now this path is hardcoded). You will likely need to modify the csproj to get the build working." Condition="!Exists($(SNPath))" /> |
| 103 | + <!--<GetFrameworkSdkPath> |
97 | 104 | <Output TaskParameter="Path" PropertyName="WindowsSdkPath" /> |
98 | 105 | </GetFrameworkSdkPath> |
99 | 106 | <Exec Command=":; echo sn; exit $?
WHERE /r "$(WindowsSdkPath.TrimEnd('\\'))" sn" ConsoleToMsBuild="true" StandardOutputImportance="low"> |
100 | 107 | <Output TaskParameter="ConsoleOutput" PropertyName="SNPath" /> |
101 | 108 | </Exec> |
102 | 109 | <PropertyGroup> |
103 | 110 | <SNPath>$([System.Text.RegularExpressions.Regex]::Replace('$(SNPath)', ';.*', ''))</SNPath> |
104 | | - </PropertyGroup> |
| 111 | + </PropertyGroup>--> |
105 | 112 | </Target> |
106 | 113 |
|
107 | 114 | <Import Project="..\..\props\common.props" /> |
|
0 commit comments