Skip to content

Commit

Permalink
For some reason MSBuild bugged when splitting references outside of S…
Browse files Browse the repository at this point in the history
…dk.props.
  • Loading branch information
AraHaan committed Oct 28, 2023
1 parent c00a664 commit 38422e7
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 45 deletions.
4 changes: 2 additions & 2 deletions Elskom.NetFX.Sdk.Web/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>1.0.2</Version>
<Version>1.0.3</Version>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<NoPackageAnalysis>true</NoPackageAnalysis>
<PackageTags>Web</PackageTags>
<Description>Elskom SDK for development of Web projects. This helps simplify the setup of .NET Framework Web projects that use the .NET SDK and fixes a few issues from doing so This results in identical publish outputs with the Non-SDK style versions of the same projects.</Description>
<PackageReleaseNotes>Restructured the Sdk.props file to help narrow down the debug type issue on non-web backend projects.</PackageReleaseNotes>
<PackageReleaseNotes>For some reason MSBuild bugged when splitting references outside of Sdk.props.</PackageReleaseNotes>
</PropertyGroup>

</Project>
31 changes: 0 additions & 31 deletions Sdk/Sdk.Packages.props

This file was deleted.

10 changes: 0 additions & 10 deletions Sdk/Sdk.References.props

This file was deleted.

38 changes: 36 additions & 2 deletions Sdk/Sdk.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,42 @@
<Project>

<Import Project="$(MSBuildThisFileDirectory)/Sdk.Properties.props" Condition="'$(TargetFramework)' == 'net472' OR '$(TargetFramework)' == 'net48' OR '$(TargetFramework)' == 'net481'" />
<Import Project="$(MSBuildThisFileDirectory)/Sdk.References.props" Condition="'$(TargetFramework)' == 'net472' OR '$(TargetFramework)' == 'net48' OR '$(TargetFramework)' == 'net481'" />

<ItemGroup Condition="'$(TargetFramework)' == 'net472' OR '$(TargetFramework)' == 'net48' OR '$(TargetFramework)' == 'net481'">
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Configuration" />
<Reference Include="System.Security" />
<Reference Include="System.Web" />
</ItemGroup>

<Import Project="$(MSBuildThisFileDirectory)/Sdk.DefaultItems.props" Condition="('$(TargetFramework)' == 'net472' OR '$(TargetFramework)' == 'net48' OR '$(TargetFramework)' == 'net481') AND '$(UsingMicrosoftNETSdkWeb)' != ''" />
<Import Project="$(MSBuildThisFileDirectory)/Sdk.Packages.props" Condition="'$(TargetFramework)' == 'net472' OR '$(TargetFramework)' == 'net48' OR '$(TargetFramework)' == 'net481'" />

<ItemGroup Condition="'$(TargetFramework)' == 'net472' OR '$(TargetFramework)' == 'net48' OR '$(TargetFramework)' == 'net481'">
<PackageReference Include="EntityFramework" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.AspNet.Identity.Owin" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.Owin.Security" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.Owin.Security.Cookies" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.Owin.Security.OAuth" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Newtonsoft.Json" IsImplicitlyDefined="true" Version="*" />
</ItemGroup>

<ItemGroup Condition="('$(TargetFramework)' == 'net472' OR '$(TargetFramework)' == 'net48' OR '$(TargetFramework)' == 'net481') AND '$(UsingMicrosoftNETSdkWeb)' != ''">
<PackageReference Include="Antlr" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.AspNet.Identity.EntityFramework" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.AspNet.Mvc" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.AspNet.Razor" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.AspNet.Web.Optimization" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.AspNet.WebApi" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.AspNet.WebApi.WebHost" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.AspNet.WebPages" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.Owin.Host.SystemWeb" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.Owin.Security.Facebook" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.Owin.Security.Google" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.Owin.Security.MicrosoftAccount" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.Owin.Security.Twitter" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="Microsoft.Web.Infrastructure" IsImplicitlyDefined="true" Version="*" />
<PackageReference Include="WebGrease" IsImplicitlyDefined="true" Version="*" />
</ItemGroup>

</Project>

0 comments on commit 38422e7

Please sign in to comment.