Reputation: 5990
When I trying to use "System.Windows.Form.Design" namespace, I have to add reference all the time in new project. Can any tell me about it?
Upvotes: 5
Views: 4358
Reputation: 1063338
There are masses of dlls available just in regular .NET, with tools to cover a wide range of technology niches - and that is before you add any external libraries. You wouldn't want all the available .NET framework dlls in your project - it would, frankly, make your eyes blister. The IDE adds a small set designed to cover:
dynamic
etc)It is entirely likely that you will need more references - but which references depends on what you are going to write - for example, you might need EF, or you might need RSS-handling, etc. You might also choose to remove a few of the default ones, if you aren't actually using them (although note that this doesn't affect the result, as the C# compiler will drop unused references automatically - this is just to be tidy).
Tools like resharper can help here, by offering to add both the using
directive and the reference when you enter a type-name that it recognises (but which doesn't currently resolve).
Upvotes: 6
Reputation: 1039120
When you create different projects in Visual Studio it adds by default different BCL assemblies as references. System.Design.dll
is not one of them as it is not commonly used by standard apps / developers. That's how the designers decided. You could create your own project type which will already contain the reference and then export it as project template.
Upvotes: 7