.net-framework-version

WPF Application Errors and .Net Framework Repairs

↘锁芯ラ 提交于 2019-12-04 01:28:55
Background : I have a .Net 3.5 WPF "Prism"-based application running on Windows XP and Windows PosReady 2009 PCs. The app runs on PCs that are shut down every night (via a C# call to "shutdown.exe") and booted fresh in the morning (via Wake-on-LAN). The application is touch-based (using ELO touch screens), there are no mice or keyboards attached and the users do not have access to Windows. Issue : We sporadically see issues where one of two things happens; either the application doesn't seem to load correctly and we see a blank white form showing, or it stops responding to touch. From looking

How can I detect whether .NET Framework 4.6.1 or higher is installed in WiX?

╄→尐↘猪︶ㄣ 提交于 2019-12-03 23:47:55
I currently using the following markup in my WiX installer project to check if .NET Framework 4.5 or greater is installed. <PropertyRef Id="NETFRAMEWORK45" /> <Condition Message="$(var.ProductName) requires .NET Framework 4.5 or higher."> <![CDATA[Installed OR (NETFRAMEWORK45 >= "#393295")]]> </Condition> How can I check for .NET Framework 4.6.1 and above? I'm using WiX 3.10.2.2516. How about: <PropertyRef Id="WIX_IS_NETFRAMEWORK_461_OR_LATER_INSTALLED" /> <Condition Message="$(var.ProductName) requires .NET Framework 4.6.1 or higher."> <![CDATA[Installed OR WIX_IS_NETFRAMEWORK_461_OR_LATER

Your project does not reference “.NETFramework,Version=v4.6.2” framework. Add a reference to “.NETFramework,Version=v4.6.2” in the “TargetFrameworks”

别来无恙 提交于 2019-12-03 22:02:39
I can't run my unit tests. I have the next error: Your project does not reference ".NETFramework,Version=v4.6.2" framework. Add a reference to ".NETFramework,Version=v4.6.2" in the "TargetFrameworks" property of your project file and then re-run NuGet restore. In app.config : <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/> </startup> In Project > Properties > Application > TargetFramework (.NET Framework 4.6.2) How can I fix it? Please make the next steps Clean solution Clean folder "packages" Delete folder "bin" Delete folder "obj" I up-voted Larissa but I

redistributable offline .NET Framework 3.5 installer for Windows 8

末鹿安然 提交于 2019-12-03 18:40:37
问题 Our company was testing our product (compiled for .NET Framework 3.5) on Windows 8. We have discovered that there is no .NET Framework 3.5 on Windows 8 and there are two possibilities to resolve this issue: online installation install from Windows 8 installation DVD or ISO But, we need to have redistributable offline installer for everyone without internet and without Windows installation DVD. Is there a way how to resolve this issue? Thanks. UPDATE : This should apply to Windows 10 as well.

ERROR: Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly?

风流意气都作罢 提交于 2019-12-03 11:20:57
I have following configuration of my PC: Windows 8 Visual Studio 2012 .NET Framework 4.5 My Project Configuration is: WP 7.1 Silverlight 4.0 .NET Framework 4.0 CTP ASYNC (installed, using async and await keywords) The project was written using VS2010 on Windows 7 machine for WP7.1. Now I have upgraded the PC to Windows 8 and have installed VS2012. The project, however, complaining about 'async' modifier. Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly? Any idea how to solve this problem? thank you!

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

∥☆過路亽.° 提交于 2019-12-03 09:36:22
问题 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

Does installing .NET Framework 4.7 eliminate the need to install 4.6.x?

大憨熊 提交于 2019-12-03 08:42:21
问题 Our environments currently have .NET Framework 2.0 50727 .NET Framework 3.0 30729 .NET Framework 3.5 30729 .NET Framework 4.5.2 379893 Rolling out 4.7 this week. Will an application targeting 4.6.x use 4.7, or do I need to install 4.6 also? 回答1: From Installing the .NET Framework: All of the .NET Framework versions listed in the following table are in-place updates to the .NET Framework 4. In other words, if you install a later version, such as the .NET Framework 4.6, you do not first have to

Copy all dependencies from .Net Standard libraries to .Net Framework Console application

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 08:09:13
After consuming .net standard projects in a .net framework(4.6) console application, the dependencies of the .net standard projects are not copied into the output directory. This results in run time error of missing dlls. The "copy local" property is already true for the referenced projects. One possible solution is to add all the dependencies again in the console application, but is not a good idea. Is there a better solution to this? After going through an article by Scott Hanselman, below solution worked like a charm. Add below line in the first "PropertyGroup" tag of the .net framework

How to use a .NET 4.0 web application within a .NET 3.5 web application?

拥有回忆 提交于 2019-12-03 06:15:25
My company has a website built in ASP.NET and targets .NET 3.5. It is too mangled and massive to be converted to .NET 4 in a timely manner. I am tasked with building a ticketing system. I want this ticketing system to be a completely separate application from the main application. I added a directory to the website called "TicketingSystem", then in IIS I set this folder as an application, using an app pool that targets .net 4.0. I assumed this application would not be affected by the application above it, especially since it uses its own app pool, but it would seem it is being affected somehow

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

独自空忆成欢 提交于 2019-12-03 04:00:45
问题 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