Skip to content

Commit

Permalink
Attempting to work around dotnet/runtime#96957
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmclaws committed Mar 27, 2024
1 parent f216d37 commit cecf558
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: dotnet build "src/Simple.OData.Client.sln" --no-restore --configuration Debug --verbosity minimal

- name: Test
run: dotnet test "src/Simple.OData.Client.sln" --no-build --verbosity minimal
run: dotnet test "src/Simple.OData.Client.sln" --no-build --configuration Debug --verbosity minimal

- name: Create NuGet Packages
run: dotnet pack src/Simple.OData.Client.sln --no-build --output packages /p:Configuration=debug /p:Version="${{ vars.CI_VERSION_MAJORMINOR }}-CI-${{ steps.build_date.outputs.date }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ jobs:
run: dotnet build "src/Simple.OData.Client.sln" --no-restore --configuration Debug --verbosity minimal

- name: Test
run: dotnet test "src/Simple.OData.Client.sln" --no-build --verbosity minimal
run: dotnet test "src/Simple.OData.Client.sln" --no-build --configuration Debug --verbosity minimal

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: dotnet build "src/Simple.OData.Client.sln" --no-restore --configuration Release --verbosity minimal

- name: Test
run: dotnet test "src/Simple.OData.Client.sln" --no-build --verbosity minimal
run: dotnet test "src/Simple.OData.Client.sln" --no-build --configuration Release --verbosity minimal

- name: Create NuGet Packages
run: dotnet pack src/Simple.OData.Client.sln --no-build --output packages /p:Configuration=release /p:Version="${{ vars.RELEASE_VERSION_MAJORMINOR }}"
Expand Down
10 changes: 9 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,18 @@
</AssemblyAttribute>-->
</ItemGroup>

<ItemGroup Condition=" $(IsTestProject) == 'true' and $(IsSampleProject) != 'true' and $(IsBenchmarkProject) != 'true' and $(IsTestAssetProject) != 'true'">
<ItemGroup Condition=" $(IsTestProject) == 'true' and $(IsBenchmarkProject) != 'true' and $(IsTestAssetProject) != 'true'">
<PackageReference Include="FluentAssertions" Version="6.*" PrivateAssets="All" />
<PackageReference Include="FluentAssertions.Analyzers" Version="0.*" PrivateAssets="All" />
<PackageReference Include="MSTest" Version="3.*" />
<!-- @robertmclaws: Temporary workaround for 8.0 bug: https://github.com/microsoft/vstest/pull/4792 -->
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.*-*" />
<PackageReference Include="Microsoft.TestPlatform" Version="17.*-*" />

<!-- @robertmclaws: We will remove these someday -->
<PackageReference Include="xunit" Version="2.*" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.*" />
<DotNetCliToolReference Include="dotnet-xunit" Version="2.*" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Simple.OData.Samples.ApiV3/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
</runtime>

<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@
<DefineConstants>$(DefineConstants);MOCK_HTTP</DefineConstants>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="xunit" Version="2.*" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.*" />
<DotNetCliToolReference Include="dotnet-xunit" Version="2.*" />
</ItemGroup>

<ItemGroup>
<None Include="app.config" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.*" />
<PackageReference Include="xunit" Version="2.*" />
<PackageReference Include="Moq" Version="4.*" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.*" />
<DotNetCliToolReference Include="dotnet-xunit" Version="2.*" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
<DefineConstants>$(DefineConstants);MOCK_HTTP</DefineConstants>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="xunit" Version="2.*" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.*" />
<DotNetCliToolReference Include="dotnet-xunit" Version="2.*" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net48'">
<PackageReference Include="Microsoft.Owin.Hosting" Version="4.*" />
<PackageReference Include="Microsoft.Owin.Testing" Version="4.*" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="xunit" Version="2.*" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.*" />
<DotNetCliToolReference Include="dotnet-xunit" Version="2.*" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.*" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net48'">
<PackageReference Include="Microsoft.Owin.Hosting" Version="4.*" />
<PackageReference Include="Microsoft.Owin.Testing" Version="4.*" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@


<%@ ServiceHost Language="C#" Factory="System.Data.Services.DataServiceHostFactory, Microsoft.Data.Services, Version=5.8.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Service="Simple.OData.Tests.Shared.NorthwindModel.NorthwindService" %>
<%@ ServiceHost Language="C#" Factory="System.Data.Services.DataServiceHostFactory, Microsoft.Data.Services, Version=5.8.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Service="Simple.OData.Tests.Shared.NorthwindModel.NorthwindService" %>
14 changes: 7 additions & 7 deletions src/Simple.OData.Tests.Shared.NorthwindService/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
</system.Web>
-->
<system.web>
<compilation debug="true" targetFramework="4.5.2">
<compilation debug="true" targetFramework="4.8">
<assemblies>
</assemblies>
</compilation>
<httpRuntime targetFramework="4.5" />
<httpRuntime targetFramework="4.8" />
</system.web>
<system.serviceModel>
<behaviors>
Expand Down Expand Up @@ -60,23 +60,23 @@
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Spatial" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.8.4.0" newVersion="5.8.4.0" />
<bindingRedirect oldVersion="0.0.0.0-5.8.5.0" newVersion="5.8.5.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.8.4.0" newVersion="5.8.4.0" />
<bindingRedirect oldVersion="0.0.0.0-5.8.5.0" newVersion="5.8.5.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.8.4.0" newVersion="5.8.4.0" />
<bindingRedirect oldVersion="0.0.0.0-5.8.4.0" newVersion="5.8.5.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.Services.Client" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.8.4.0" newVersion="5.8.4.0" />
<bindingRedirect oldVersion="0.0.0.0-5.8.5.0" newVersion="5.8.5.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.Services" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.8.4.0" newVersion="5.8.4.0" />
<bindingRedirect oldVersion="0.0.0.0-5.8.5.0" newVersion="5.8.5.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
Expand Down

0 comments on commit cecf558

Please sign in to comment.