© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•17mo ago•
66 replies
MITCHELL

✅ Issue with Sdk Targeting Multiple Frameworks

Hi everyone. I'm creating a sdk that targets both .net 6 and .net 8 frameworks. The publishing works fine but when I add the sdk reference to .net 6 project it is giving me the following errors:

0>CSC: Error CS1705 : Assembly 'SDK' with identity 'SDK, Version=8.0.0.8, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
0>CSC: Error CS1705 : Assembly 'SDK' with identity 'SDK, Version=8.0.0.8, Culture=neutral, PublicKeyToken=null' uses 'Microsoft.AspNetCore.Mvc.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' which has a higher version than referenced assembly 'Microsoft.AspNetCore.Mvc.Core' with identity 'Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

✅ When targeting multiple frameworks, which one runs when pressing Ctrl + F5 in VS Code?
C#CC# / help
10mo ago
✅ Framework targeting
C#CC# / help
3y ago
✅ Multi-targeting NetFx and NetCore - Targeting wrong version?
C#CC# / help
3y ago
❔ Design Frameworks
C#CC# / help
3y ago