.net-framework-version

What .NET Framework version should I ship with; 2, 3, 3.5? [closed]

早过忘川 提交于 2019-11-29 09:29:06
My application uses 2.0. At some point in the future I may want to start using newer features added in later framework versions. Should I wait until then? Or are there advantages to updating to the latest .NET 3.5 now? I suppose by the time I am ready for next spring's release 4.0 will be out. Perhaps I should stick with 2.0 for my fall release and save my customers the HD space and install time of another framework version? In my opinion, you should ship with what your app needs. Otherwise you are making your install longer for no reason and as you noted using your customer's HD space again

Convert .Net Core to .Net Framework

爱⌒轻易说出口 提交于 2019-11-29 02:08:31
问题 I have a .Net Core project web project, and for various reasons want to convert it to a .Net Framework project. Is there an easy way to do this, or do I have to start again and import the code from the previous projects 回答1: I have loaded core project to the VS 2017 RC Community and open *.csproj in text editor. Just delete teg <RuntimeFrameworkVersion> and replace <TargetFramework>netcoreapp1.1</TargetFramework> to <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> And after all in

Error CS1056: Unexpected character '$' running the msbuild on a tfs continuous integration process

£可爱£侵袭症+ 提交于 2019-11-28 18:40:09
I have a project that the framework is targeting .NET Framework 4.6.1 , as part of the continuous integration process on the tfs we created a Build Solution task to ensure that the code compiles correctly. Now the TFS server has the latest version of the .Net Famework 4.6.2 . On the register this is the value for the Release key of the framework On all other OS versions: 394806 => .NET Framework 4.6.2 But when the build runs it comes with this error: Error CS1056: Unexpected character '$' I don't want to replace the string interpolation with the string.Format to solve this issue, please

Could not load file or assembly System.Net.Http version 4.1.1.0

余生长醉 提交于 2019-11-28 09:36:47
I'm porting a Net Framework 4 dll to Net Core. When porting my unit tests project I get an exception running some specific tests (not all). System.IO.FileLoadException: Could not load file or assembly 'System.Net.Http, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) This is the project.json for my dll { "version": "1.0.0-*", "dependencies": { "log4net": "2.0.7", "NETStandard.Library": "1.6.1", "Newtonsoft.Json": "9.0.1",

Error: Unable to generate a temporary class (result=1) … When Invoking Methods on a Web Service

无人久伴 提交于 2019-11-28 09:03:22
Error: Unable to generate a temporary class (result=1) ... When Invoking Methods on a Web Service. I am using VS 2008 C# ASP.NET 3.5. I am invoking a remote webservice to my application. Server Error in '/' Application. Server was unable to process request. ---> Unable to generate a temporary class (result=1). error CS2001: Source file 'C:\WINDOWS\TEMP\6sbkwt2d.0.cs' could not be found error CS2008: No inputs specified Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it

What .NET Framework version should I ship with; 2, 3, 3.5? [closed]

╄→尐↘猪︶ㄣ 提交于 2019-11-28 02:56:17
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . My application uses 2.0. At some point in the future I may want to start using newer features added in later framework versions. Should I wait until then? Or are there advantages to updating to the latest .NET 3.5 now? I suppose by the time I am ready for next spring's

Are applications dependent on the environment where it was compiled?

青春壹個敷衍的年華 提交于 2019-11-28 02:26:47
We are having a System.BadImageFormatException in our MSI installers. I have already read about the target frameworks, but we already checked and it's targeting the correct framework ( .NET Framework 4.5 same with our QA machines). We have exactly the same source codes, but the results of the msi installer compiled by our 'build team' fails, but the msi installer compiled by us 'dev' works. Question is, does the environment where an application was built and compiled affects the output (example: msi installers)? There are basically two reasons for this error: A cross-architecture call from 32

preventing cross-site request forgery (csrf) attacks in asp.net web forms

…衆ロ難τιáo~ 提交于 2019-11-27 19:06:25
I have created an ASP.Net Web Forms application using Visual Studio 2013 and I am using .NET Framework 4.5. I want to make sure my site is secure from Cross-Site Request Forgery (CSRF), I have found many articles talking about how this feature is implemented on MVC apps, but very few talking about Web Forms. On this StackOverflow question one comment states that "This is an old question, but the latest Visual Studio 2012 ASP.NET template for web forms includes anti-CSRF code baked into the master page. If you don't have the templates, here's the code it generates:..." My master page does not

What version of .NET ships with what version of Windows?

亡梦爱人 提交于 2019-11-27 12:32:24
Looking for a list of Windows versions (service packs included) and what version of .NET is natively 1 available. Example: Windows A - .NET Framework Z Windows A Service Pack 1 - .NET Framework Z Windows A Service Pack 2 - .NET Framework Y 1 By natively I mean that is there with no installs done. samjudson This should give you all the answers you want: https://en.wikipedia.org/wiki/.NET_Framework#Release_history Due to the fact that new versions of .NET are being released all the time I felt it would not be correct to try to embed the history into this answer, but merely direct you to a source

Error CS1056: Unexpected character '$' running the msbuild on a tfs continuous integration process

╄→尐↘猪︶ㄣ 提交于 2019-11-27 11:09:51
问题 I have a project that the framework is targeting .NET Framework 4.6.1 , as part of the continuous integration process on the tfs we created a Build Solution task to ensure that the code compiles correctly. Now the TFS server has the latest version of the .Net Famework 4.6.2 . On the register this is the value for the Release key of the framework On all other OS versions: 394806 => .NET Framework 4.6.2 But when the build runs it comes with this error: Error CS1056: Unexpected character '$' I