I have a WPF .NET 4.0 class library referencing a Silverlight 4 class library.
The SL library compiles fine but when I compile the WPF class library, I get:
Error 2 Unknown build error, 'Cannot resolve dependency to assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' because it has not been ...
One feature of Threads is that you can set the .IsBackground property to true, and it will not prevent the process from terminating (ie, the framework calls Thread.Abort() on all running background threads at termination)
I can't seem to find a similar feature in Tasks. I used background threads a lot when I create services, where if t...
I've started using .NET 4 System.Numerics.BigInteger Structure and I've encountered a problem.
I'm trying to parse a string that contains a hexadecimal number with no sign (positive). I'm getting a negative number.
For example, I do the following two asserts:
Assert.IsTrue(System.Int64.Parse("8", NumberStyles.HexNumber, CultureInfo.In...
I'm using .NET 4 System.Numerics.BigInteger Structure and I'm getting results different from the documentation.
In the documentation of BigInteger.ToString() Method It says:
The ToString() method supports 50
decimal digits of precision. That is,
if the BigInteger value has more than
50 digits, only the 50 most
significant di...
I have a Visual Studio 2010 .NET 4 solution with C# projects and a C++/CLI project.
I use Visual Studio's built in unit tests and code coverage.
Other than the fact that Visual Studio 2010 coverage tool for C++/CLI projects seems to be much weaker than Visual Studio 2008 coverage tool, I get weird results.
For example, I get uncovered...
I have a form for creating a new account and it has a password field in it. I'm using view models to pass data to the controller action and back to the form view. When the user enters their details in, and clicks submit, if validation fails and it returns them to the same view passing back in the view model, it won't default the password...
Hi Guys,
I have just updated my nant script to compile my .net framework 4 solution.
And I got the above error while generating commonassemblyinfo.cs in my solution.
I visited msdn website and also added
<NetFx40_LegacySecurityPolicy enabled="true" />
in my web.config under runtime->configuration.
But that didn't solve my problem.
Ca...
I'm having a problem on my TeamCity CI build server where during compilation I get the following error:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2342, 9): error MSB3086: Task could not find "AL.exe" using the SdkToolsPath "" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Window...
I'm looking to put an application window behind all other windows.
I was thinking of using .NET 4 and WPF or Silverlight.
I don't have any specific drawing code, I just want my application window as my desktop wallpaper while retaining the interactivity (no mucking around with screenshots etc).
Is this even possible and if so, how?
Ed...
Hello, everyone. I fell in the following situation:
I have a main UserControl with a DataGrid (which contains List). I need to show different panels depending on properties of the selected row(object). So i've created 2 controls and included them into this main control. Main control has 2 public properties -
public List<ComplexObject> ...
Possible Duplicate:
Are .NET 4.0 Runtime slower than .NET 2.0 Runtime?
Hello All,
We are planning to move to .NET framework 4.0 sometime soon...
I don't remember the refernce or link, but recently, I read about the latest framework being a little slow in performance when compared to its predecessors.
Is that true? has anybod...
Hi.
I've identified a difference of DLR between .NET 4.0 Beta 2 and the last release of .NET 4.0.
In .NET 4.0 Beta 2, this code perfectly works at runtime :
var dateTimeList = new List<DateTime>();
dynamic myDynamicObject = dateTimeList;
object value = DateTime.Now;
myDynamicObject.Add(value);
Now, with last release of .NET 4.0...
In the .NET 2.0-3.5 frameworks, LCG (aka the DynamicMethod class) was a decent way to emit lightweight methods at runtime when no class structure was needed to support them.
In .NET 4.0, expression trees now support statements and blocks, and as such appear to provide sufficient functionality to build just about any functionality you co...
Hi,
I have coverted project to .Net 4.0 and folowing code doesn't work:
typeof(RuntimeTypeHandle).GetMethod("Allocate", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(type.TypeHandle, null)
It seems that there is no more Allocate method in RuntimeTypeHandle class. GetMethod returns null.
What is the analog in .Net 4.0?
...
At the last PDC (can't remember which talk it was) they gave us the information that it will be possible to share assemblies between regular .Net 4 and Silverlight 4.
Unfortunately I can't find anything on this. Was this feature dropped? What options/limitations are there?
(There are similar questions on SO but they don't say if they a...
For Visual Studio 2010 Web based application we have Config Transformation features by which we can maintain multiple configuration files for different environments. But the same feature is not available for App.Config files for Windows Services/WinForms or Console Application.
There is a workaround available as suggested on the follow...
Hello,
Maybe it is science fiction, but i would like to know if it is possible to join a WF exposed with WCF and a WCF into the same WSDL. As you know a WF service (xaml) exposes a wsdl and a WCF (svc) exposes its own.
The background problem is that I do not want to differenciate long running process and short synchronous ones into dif...
Greeting,
currently we migrate our project to .net 4. also we use .nunit 2.5.5 with testdriven.net 3.
I got this error, when I run tests.
Test 'TestCase1' failed: System.IO.FileNotFoundException : Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f...
Hi !
I am experiencing a strange issue with VS2010. We use TFS to build our API dlls and we used to reference them in our projects usign a mapped network drive that was fully trusted. We have been working like that for at least two years and everything worked perfectly.
Today, I converted a webapp to vs2010 and when I compile it in Rel...
I am tasked with rewriting our internal conversion software from vb6 to C# .net 4. The software will take a data source (it could be a flat file, mySQL, MS SQL, Access) and put it in to our MS SQL format. So yes I as the client I need to touch all 4,000,000 rows. Right now I am writing a MS SQL -> MS SQL module. Because I need to do many...