.net-framework-version

What are the 43 APIs that are in .Net Standard 2.0 but not in .Net Framework 4.6.1?

久未见 提交于 2019-12-02 22:36:03
The SO question entitled .NET Standard API Reference , quoting the discussion in https://github.com/dotnet/standard/issues/133 , mentions 43 APIs that will be included in the .Net Standard 2.0 but are not supported by .Net Framework 4.6.1. However, I have not been able to find a list of those 43 APIs anywhere on the Internet. The closest I've come in my search is https://github.com/dotnet/standard/blob/master/docs/versions/netstandard1.5_diff.md and https://github.com/dotnet/standard/blob/master/docs/versions/netstandard1.6_diff.md , which list the APIs introduced in .Net Standard 1.5 and 1.6.

Is there a recommended approach to configuring a NuGet package targeting multiple frameworks in TeamCity using MSBuild?

元气小坏坏 提交于 2019-12-02 16:20:06
I've read a handful of posts (see references below) and have yet to find a guide on best practices that is specific to my tech stack. The goal: Create a single NuGet package targeting multiple .NET frameworks built from a single .csproj file via TeamCity using MSBuild and NuGet. The constraints: Pull the code from the VCS only once. All compiled assemblies should be versioned the same. Single .csproj (not one per target framework). I have two approaches in mind: Create a single build configuration. It would contain three build steps: compile .NET 3.5, compile .NET 4.0, pack with NuGet. Each

You must add a reference to assembly 'netstandard, Version=2.0.0.0

风格不统一 提交于 2019-12-02 16:04:35
The project is an ASP.NET MVC Web App targeting the .NET Framework 4.6.1. All of a sudden (some NuGet packages were upgraded) I started to get the following error during runtime: CS0012: The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. In my main view Index.cshtml , in a line where I make use of @Html.ActionLink I do have .NET Core SDK 2.0 and .NET Framework 4.7.1 installed in my machine but I don't want to include a reference to it. This is a .NET

Unhandled Exception when trying to add registry key

爱⌒轻易说出口 提交于 2019-12-02 09:50:39
When I use the following code My.Computer.Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True).SetValue(Application.ProductName, Application.ExecutablePath) to add a registry key to make my program startup automatically, it works on my system but on everyone who I have sent it to gets an "Unhandled Exception" message saying that access is denied. I was wondering if there is a solution to this. Thanks You get "Access denied" because you are required to run your app with administrative privileges if you want to write to the HKEY_LOCAL_MACHINE key. You can force

.Net framework - “unable to find a version of the runtime to run this application”

こ雲淡風輕ζ 提交于 2019-12-02 03:32:38
Machine with /Net framework version 4.0 installed m/c (win xp with sp3) (no previous framework version present) when try to run the program which is compiled in framework previous version of .net framework i.e =>3.5 ,came across below initialization error " unable to find a version of the runtime to run this application ". on googling found - changing config <startup> <supportedRuntime version="v4.0.30319" /> </startup> may help to solve, but that too didn't work. Any help would be appreciated. I could able to solve this issue. Below info would be a help for someone who is in my situation.

Could not load file or assembly 'file:///C:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319\\ asp.net vs2010

我的未来我决定 提交于 2019-12-01 08:55:40
Yesterday my project was running smoothly but today I'm facing an error. Here are the details: Could not load file or assembly 'file:///C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\parktms\c8392404\1ba3bab5\App_Web_login.aspx.6cc23264.lmj8uym6.dll' or one of its dependencies. The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE)) 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 originated in the code. Exception Details: System.IO

Targeting .NET Framework 4 when Framework 4.5 is installed

若如初见. 提交于 2019-11-30 18:29:12
I have VS2010 and VS2012 installed on my computer and had the .NET Framework 4.0 which I then upgraded to .NET Framework 4.5. However, I am still developing apps that need to work on .NET Framework 4.0. The project says that it is targeting .NET Framework 4 (Client Profile) the assemblies even point to .NET Framework 4.0 folder under Referenced Assemblies. The problem comes when I move this application to a machine that only has 4.0 it won't start and come up with errors the immediate problem being an exception resulting from WindowState={Binding WindowState} which you can't do in 4.0 but you

Create a standalone exe without the need to install .NET framework

落花浮王杯 提交于 2019-11-30 17:26:06
I'm a student and at the moment i'm doing an internship at a company. This internship is about analysing a project. For this project I have made a demo to show to the Marketing director. The demo I have made is a simple project created in Visual Studio 2010 in c# with Windows Forms and a connection to an Access database. So now i have to show this demo to this director in a presentation but after this presentation the director wants the project on his computer so he can try and use it. The problem is now that the computers here in this company don't have .NET framework 4.0 and the computers

Targeting .NET Framework 4 when Framework 4.5 is installed

ぐ巨炮叔叔 提交于 2019-11-30 16:47:58
问题 I have VS2010 and VS2012 installed on my computer and had the .NET Framework 4.0 which I then upgraded to .NET Framework 4.5. However, I am still developing apps that need to work on .NET Framework 4.0. The project says that it is targeting .NET Framework 4 (Client Profile) the assemblies even point to .NET Framework 4.0 folder under Referenced Assemblies. The problem comes when I move this application to a machine that only has 4.0 it won't start and come up with errors the immediate problem

Can a build server with .NET 4.5 installed successfully deploy a project targeting 4.0 to a server with only .NET 4.0 installed?

拜拜、爱过 提交于 2019-11-30 13:13:12
We've recently installed .NET 4.5 onto our continuous integration build server so that it can support new projects that utilize features of .NET 4.5. This build server is also used to build and deploy older projects, as well, some of which target .NET 4.0. Projects that target .NET 4.0 being built on this server, then deployed to a target server that has only .NET 4.0 installed are now failing with the following error: Method not found: 'Int32 System.Environment.get_CurrentManagedThreadId()'. Environment.CurrentManagedThreadId is a new property of .NET Framework 4.5, so it makes sense that a