mscorlib

What's the SpecialFolder enum member that has the base directory for the user?

孤街醉人 提交于 2021-01-29 07:20:00
问题 As far as I understand these are the best examples for each of the SpecialFolder members: Desktop C:\Documents and Settings\ibboard\Desktop Programs C:\Documents and Settings\ibboard\Start Menu\Programs Personal C:\Documents and Settings\ibboard\My Documents MyDocuments C:\Documents and Settings\ibboard\My Documents Favorites C:\Documents and Settings\ibboard\Favorites Startup C:\Documents and Settings\ibboard\Start Menu\Programs\Startup Recent C:\Documents and Settings\ibboard\Recent SendTo

Visual Studio asks me to reference a nonexistent assembly

爱⌒轻易说出口 提交于 2020-02-03 03:16:45
问题 I somehow brought my project to a state where Visual Studio 2013 fails to compile it with a ridiculous error: The type 'System.Collections.Generic.Dictionary`2' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. First of all, there is no such assembly, it does not exist . Second, Dictionary<TKey, TValue> is defined in mscorlib.dll , which is referenced by default, of

Visual Studio asks me to reference a nonexistent assembly

蓝咒 提交于 2020-02-03 03:16:26
问题 I somehow brought my project to a state where Visual Studio 2013 fails to compile it with a ridiculous error: The type 'System.Collections.Generic.Dictionary`2' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. First of all, there is no such assembly, it does not exist . Second, Dictionary<TKey, TValue> is defined in mscorlib.dll , which is referenced by default, of

Cannot find type System.ApplicationException in module mscorlib.dll Error in Windows Store App while using Matlab dll

馋奶兔 提交于 2020-01-24 17:17:25
问题 I am making an Image processing App for my own use which I don't want to put on store. I want to use my pre designed Matlab codes in that windows store app. When using the dlls in my project, it displays the error - Cannot find type System.ApplicationException in module mscorlib.dll 回答1: Most probable cause for this exception is the DLLs which you are referencing or their dependencies are not supported by WinRT Try to use LoadPackagedLibrary or GetProcAddress to load DLLs. If you cannot then

How can I determine free space on a Windows CE device?

喜你入骨 提交于 2020-01-17 04:17:11
问题 I need to determine how much free space there is on a Windows CE device, to conditionally determine whether a particular operation should proceed. I thought Ken Blanco's answer here (which bears a striking similarity to the example yonder) would work, which I adapted as: internal static bool EnoughStorageSpace(long spaceNeeded) { DriveInfo[] allDrives = DriveInfo.GetDrives(); long freeSpace = 0; foreach (DriveInfo di in allDrives) { if (di.IsReady) { freeSpace = di.AvailableFreeSpace; } }

Debugging mscorlib in .Net 4.0

不问归期 提交于 2019-12-24 00:55:57
问题 I'm getting the following exception from System.IO.Path.CheckInvalidPathChars() in mscorlib: [ArgumentException: Illegal characters in path.] System.IO.Path.CheckInvalidPathChars(String path) +142 System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength) +100 System.IO.Path.GetFullPath(String path) +187 System.Xml.XmlResolver.ResolveUri(Uri baseUri, String relativeUri) +114 System.Xml.XmlTextReaderImpl..ctor(String url, XmlNameTable nt) +135 System.Xml.XmlDocument.Load

Curious to mscorlib reference

北慕城南 提交于 2019-12-23 09:34:59
问题 I am curious as to the mscorlib reference in different project templates. When I create a WPF project, I cannot find the mscorlib file in the reference folder. I think it is referenced by default. When I create a Silverlight project, I can find it in the folder. It links to the Silverlight framework. Then I tried to delete it and of course it cannot be compiled. Then I tried to re-add this assembly to the reference again; it cannot be added and cannot be compiled anymore. It's weird. When I

A first chance exception occurred… and I don't know why

点点圈 提交于 2019-12-22 01:27:59
问题 Whenever I try to debug my Windows Phone 7 C# app, I get the following message in the Output window: A first chance exception of type 'System.OverflowException' occurred in mscorlib.dll A first chance exception of type 'System.OverflowException' occurred in mscorlib.dll A first chance exception of type 'System.InvalidOperationException' occurred in Microsoft.Phone.dll ...And then, App.xaml.cs opens up in VS (still in debug mode, where I can't edit anything), and "System.Diagnostics.Debugger

Using system types in XAML as resources

♀尐吖头ヾ 提交于 2019-12-22 01:27:08
问题 I have encountered a situation where it would be very useful to specify a floating point value directly in XAML and use it as a resource for several of my UI pieces. After searching around I found a good amount of information on how to include the proper assembly (mscorlib) in your XAML so you can do just that. Unfortunately, I am getting an exception in one instance where I try to do this. Here is the following XAML that recreates the situation: <Window x:Class="davidtestapp.MainWindow"

Visual Studio 2015 - C# Windows Universal App missing assembly reference

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 10:52:30
问题 Today I cloned my windows universal app project from github onto a new machine running a new install of Visual Studio 2015. After the project loaded, I noticed that all of my pages and properties were underlined red with many errors CS0246 C# The type or namespace name "<name>" could not be found (are you missing a using directive or an assembly reference?) as well as others such as CS0518 C# Predefined type 'System.Void' is not defined or imported CS0012 C# The type '' is defined in an