How to reference System.Design
See original GitHub issueWhen converting the project to netcoreapp3.0 and keeping the System.Design
reference, the compiler doesn’t seem to see the reference:
CS0012 The type ‘ComponentDesigner’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<!-- ... -->
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Design" />
<!-- ... -->
<FrameworkReference Include="Microsoft.DesktopUI" />
</ItemGroup>
</Project>
How will this work in the future?
(edit) This gets it to build:
<Reference Include="System.Design" HintPath="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Design.dll" />
But since System.Design is heavily used at runtime, I’m doubtful that the .NET Framework’s System.Design will work.
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
How to reference System.Design #221 - dotnet/winforms
When converting the project to netcoreapp3.0 and keeping the System.Design reference, the compiler doesn't seem to see the reference:.
Read more >A System Design Reference Model
The reference model can be used to find similarities and dissimilarities between different design pro- cesses, and to find possible connections between ...
Read more >Formal Methods in System Design Referencing Guide ...
This is the Citationsy guide to Formal Methods in System Design citations, reference lists, in-text citations, and bibliographies.
Read more >Reference - System Design - GitBook
Reference. The System Design Primer | by @donnemartin on GitHub - Learn how to design large-scale systems. Prep for the system design interview....
Read more >How to reference system.design in a client profile project?
Simply put: you can't. You'll have to either change the target framework or re-implement the control for the client profile.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We have similar dependencies for our custom WinForms controls too. The missing API set is nearly identical. In our case they are design-time only and we have a build option to strip them out of release builds, so we are still able to run our application on .NET Core 3 alpha today (with some additional fixes discussed in the CoreFX repository issues).
I suspect this will come up quite often and it has to be addressed in one way or another. I was hoping that this will eventually come later when the WinForms design-time support is brought in later preview. I’m taking a wait-and-see approach on this one, but wanted to express some support that the scenario is probably common.
Hi Olia,
Our applications depend on DevExpress’s End User Report Designer (docs). DevExpress built it on top of the System.ComponentModel/IDesignerHost/CodeDOM set of abstractions, very much like the Windows Forms designer itself.
This designer ships for our users at runtime (as the name suggests). We’ve written custom reporting elements that integrate with it. Since DevExpress based the designer heavily on System.Design, our integrations with the report designer are also tied to System.Design. We’re hoping that this doesn’t keep us from moving to .NET Core.
In this report, see especially
DevExpress.XtraReports.v17.2.Extensions.dll
which houses their End User Report Designer: Portability report for DevExpress dependencies.xlsxThat’s what DevExpress’s code needs. Our code, which merely integrates with DevExpress’s report designer, ends up directly using these types:
And these members: