If you receive the following Visual Studio compiler error:
Error MSB4019: The imported project "C:Microsoft.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
If you receive the following Visual Studio compiler error:
Error MSB4019: The imported project "C:Microsoft.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Qink has assembled a comprehensive list of freely-available libraries for the Microsoft .NET platform.
Microsoft has released Service Pack 1 for its Visual Studio 2010 flagship integrated development environment (IDE). Visual Studio SP1 provides many new features, performance improvements, and bug fixes including:
Download Visual Studio 2010 SP1
Full Description of VS 2010 SP1
Tips on Installing VS 2010 SP1
When building a C# interface, you may find a need for both public and internal methods, such as:
public class MyClass : IMyInterface { public void MyPublicMethod() { } internal void MyInternalMethod() { } } public interface IMyInterface { public void MyPublicMethod(); internal void MyInternalMethod(); }
There is Point and PointF, Size and SizeF, Rectangle and RectangleF, Padding and… wait, there is no PaddingF!
The 2-D drawing functions in the System.Drawing namespace accept both integer and floating point measurements. That’s why the main 2-D drawing structures have both int and float versions such as Point and PointF, respectively.
However, the Padding structure is defined separately in the System.Windows.Forms namespace where most 2-D measurements are in integers. Hence, there is an integer Padding structure but no floating point PaddingF.
Microsoft has updated the free Productivity Power Tools for Visual Studio 2010. These are add-ins that provide very useful additional functionality for Visual Studio. New in this release:
The Microsoft All-In-One Code Framework is a free, centralized code sample library provided by the Microsoft Community team. Their goal is to provide typical code samples for all Microsoft development technologies.
The team listens to developers’ pains in MSDN forums, social media and various developer communities. They write code samples based on developers’ frequently asked programming tasks, and allow developers to download them with a short code sample publishing cycle. Additionally, the team offers a free code sample request service. This service is a proactive way for our developer community to obtain code samples for certain programming tasks directly from Microsoft.
Do you notice anything odd about the following list?
00000000-9b6d-4998-9dd7-6026894bdfba
11111111-9022-4400-bac2-8b66a9874443
22222222-a890-4dec-98bc-f41536b760bc
33333333-e361-4239-8d04-3f16f68ad9ce
44444444-d8c2-40ab-91bd-5a84511ed9d3
55555555-447a-4aa9-a51f-35c74a154156
66666666-193b-4ac3-bd92-860b6b49aedb
77777777-49de-4cc5-b9e6-2e5785dd47af
88888888-0d00-4672-933a-d68e240772be
99999999-7d9d-4d77-9e35-5e919db0f7d1
aaaaaaaa-76cd-4d6b-bae2-574e5b57c7ab
bbbbbbbb-6f9e-4d2d-ba11-64df5c7355fa
cccccccc-b897-4b15-9ab3-11b97836ce85
dddddddd-b417-48ad-8b5b-b762df75e03b
eeeeeeee-cc9c-4cb8-bae0-bbd4b10307fa
ffffffff-8d46-4a31-b297-2ac67dda3600
If your Silverlight project compiles correctly and appears to run, but it displays only a blank page in the web browser, the first place to check is the “Startup object” in the Silverlight’s project properties:
To iterate over an IDictionary<x,y> interface, use the KeyValuePair<x,y> structure. Following is a simple example: