.net-4.5

Where is the .NET Framework 4.5 directory?

点点圈 提交于 2019-12-17 06:25:16
问题 I've installed Windows 8, Visual Studio 2012 but don't have a v4.5 directory in %WINDIR%\Microsoft.NET\Framework . Have I done something wrong, or is .NET 4.5 different from others? If it's because I have not installed the tools, is there a set of different tools to download? As far as I can tell, I am able to build .NET 4.5 apps OK. 回答1: .NET 4.5 is an in place replacement for 4.0 - you will find the assemblies in the 4.0 directory. See the blogs by Rick Strahl and Scott Hanselman on this

Is it possible to run a .NET 4.5 app on XP?

假如想象 提交于 2019-12-17 04:47:26
问题 First, I have read the following: Connect case VS case and especially this channel9 post So, from the last bullet, I really think there is no way around this, but I had to see if I could get a definitive answer as my team would like to upgrade from .NET 4.0 to .NET 4.5. However, we have to support XP. Is there no possibility of going to .NET 4.5 if we want to support XP? The only thing I could think of is creating two separate solutions, but then the codebases would have to diverge if we used

Is it possible to run a .NET 4.5 app on XP?

不羁岁月 提交于 2019-12-17 04:46:59
问题 First, I have read the following: Connect case VS case and especially this channel9 post So, from the last bullet, I really think there is no way around this, but I had to see if I could get a definitive answer as my team would like to upgrade from .NET 4.0 to .NET 4.5. However, we have to support XP. Is there no possibility of going to .NET 4.5 if we want to support XP? The only thing I could think of is creating two separate solutions, but then the codebases would have to diverge if we used

Targeting .NET Framework 4.5 via Visual Studio 2010

删除回忆录丶 提交于 2019-12-17 00:47:33
问题 Today I installed the .NET Framework 4.5 on my machine expecting to be able to use it from Visual Studio 2010, since it's just a minor update that should't pose problems for Visual Studio 2010. Unfortunately I am not, even manually removing certain 4.0 and adding the corresponding 4.5 assemblies resulted in the original 4.0 assemblies still being referenced in the project. Is it possible to target version 4.5 from Visual Studio 2010 and if yes, how? I'd really like to use the ribbons... 回答1:

Task continuations always run even when specifying TaskContinuationOptions

和自甴很熟 提交于 2019-12-14 04:17:48
问题 I want to run some code when an async task completes successfully. From reading documentation and examples on the web, I thought I could use Task.ContinueWith and specify TaskContinuationOptions.OnlyOnRanToCompletion . However, this doesn't behave as I expected. The following code is a console program, created in Visual Studio 2012, .Net 4.5: using System; using System.Threading.Tasks; namespace TaskContinueTest { class Program { static void Main(string[] args) { var jobTask = Task.Factory

SignalR An asynchronous operation error

亡梦爱人 提交于 2019-12-14 03:57:56
问题 I'm using SignalR 1.1.2 and I have problem with async hub method. Everything works fine on my PC with ForeverFrame transport but after deploying on server and switching to web sockets transport I receive following error: An asynchronous operation cannot be started at this time. Asynchronous operations may only be started within an asynchronous handler or module or during certain events in the Page lifecycle. If this exception occurred while executing a Page, ensure that the Page is marked <%@

How do I enable IntelliSense in VS 2013 for <rewrite> in transform .config?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-14 03:41:59
问题 I decided I wanted to move some rewrite rules into our web.release.config and web.staging.config files in order to keep the rewrite rules relevant to the environments our different configurations run on. IntelliSense didn't like this decision and wouldn't play ball because: xdt:Transform "attribute is not declared" for the <rewrite> element. I looked at RuslanY's solution here and I considered several solutions on this site but none of them provided the solution to this particular problem in

.Net 4.5 vs .Net 3.5 RegSetValueEx returning a bunch null characters

a 夏天 提交于 2019-12-14 03:15:10
问题 I have recently ran into a problem with RegSetValueEx (from advapi32.dll). It looks like a REG_SZ saved with that method in .Net 3.5 gets incorrectly read in .Net 4.5 using RegistryKey.GetValue(). Illustration below: //---.Net 3.5--- (no issues) Call RegSetValueEx() to save base64 string value "ajG8s" to the registry Call RegistryKey.GetValue() on that value returns "ajG8s" //---.Net 4.5--- (no issues) Call RegSetValueEx() to save base64 string value "ajG8s" to the registry Call RegistryKey

How to combine and retrieve multiple columns from two tables in a Dataset

a 夏天 提交于 2019-12-13 21:12:50
问题 I have a DataSet with two tables connected by a reference (Loop_id) Table1 Column1 Column2 Loop_id 1 ItemCode_AAA 6 2 ItemCode_BBB 8 Table2 Column1 Loop_id 2014-Sep-09 6 2014-Nov-09 8 How do I retrieve all the columns, except loop_id from both tables to single table. The resulting table should appear like T1_Column1 T1_Column2 T2_Column1 1 ItemCode_AAA 2014-Sep-09 2 ItemCode_BBB 2014-Nov-09 I am using Net Framework 4.5 回答1: Use Linq to DataSets: To enumerate the table, call AsEnumerable .

How to save image using JpegBitmapEncoder

本小妞迷上赌 提交于 2019-12-13 19:43:34
问题 According to the image encoding example here I should be able to use JpegBitmapEncoder to encode an image for saving as a jpeg file but get this compile error: error CS1503: Argument 1: cannot convert from 'System.Windows.Controls.Image' to 'System.Uri' I don't see a way (property or method in Image) to get System.Uri from Image. What am I missing? The Image xaml code is <Image Name="ColorImage"/> The SaveImage C# is ... SaveImage(ColorImage, path); ... private void SaveImage(Image image,