.net-4.6.1

When using .Net Standard 1.4 in a library and .Net framework 4.6.1 in and application, unable to load file System.IO.FileSystem, Version=4.0.1.0

老子叫甜甜 提交于 2019-12-06 02:30:16
问题 I have a solution that contains a library and 2 applications. The applications represent the same program, with one built to target the Windows App Store through UAP10 and the other built to target a Microsoft Windows PC using .Net Framework 4.6.1. I'm using Visual Studio 2017. I set the library project target .Net standard 1.4. I set the UWP application to target Windows 10 Aniversary Edition (10.0; Build 14393), Min version Windows 10 (10.0; Build 10586). I set the generic Windows

F# method returns null instead of Option

别来无恙 提交于 2019-12-06 01:19:31
问题 I develop F# application .net 4.6.1 on VS2015 . i have methods: type CommonHelper = static member SideEffectOnNull act x = if x = null then act(); x else x static member SideEffectOnNotNull act x = if x <> null then act(); x else x ... static member GetPerformanceCounter ( fname: CounterFullName ) = let getCounterInternal ( counterFullName: CounterFullName ) = Log.Information("Getting counter: {category}\\{name}\\{instance} ", counterFullName.Category, counterFullName.Name, counterFullName

ChromeDriver exception reporting “target window already closed” in headless mode

↘锁芯ラ 提交于 2019-12-05 06:40:45
问题 I am using xUnit, SpecFlow, Selenium and headless Chrome to run automated tests, but every so often I will get a series of crashes when running on localhost when trying to capture a screenshot of the final browser window. There are two scenarios, each in a separate feature file, which means they run in parallel. It appears to be the scenario which starts up second which always fails. Here is how I'm creating my browser instance: private static readonly string UserDataDir = new FileInfo

How to do extreme branding/internationalization in .NET

旧城冷巷雨未停 提交于 2019-12-05 05:59:37
We are planning a pretty big application. -We want to internationalize our application for 30 countries. -In most countries 1 to 6 different brands are available. -Each combination of a certain locale like 'de' and brand like 'XXX' might occur multiple times therefore we need another identifier to get something unique: "locale_brand_siteorigin" Therefore we have .resx file like: Configurations. de.burgerking.px10 .resx The bold printed is the unique identifier. During runtime we create a: var rm = new ResourceManager("MyNamespace.Configurations.UniqueIdentifier",Assembly.GetExecuting());

What is the difference between .NET Framework 4.6.1 Targeting Pack and .NET Framework 4.6.1 Runtime?

こ雲淡風輕ζ 提交于 2019-12-04 16:53:15
问题 I want to develop .net framework 4.6.1 applications using Visual studio 2012.So, I tried to install 4.6.1 developer pack for visual studio 2012.But when I go to this link to install the framework.It provides me two links, one for .NET Framework 4.6.1 Targeting Pack and the other for .NET Framework 4.6.1 Runtime. Which one of these shall I install? 回答1: To use the framework with Visual Studio 2012 or later install the developer type version. The runtime type version is a lighter version, meant

When using .Net Standard 1.4 in a library and .Net framework 4.6.1 in and application, unable to load file System.IO.FileSystem, Version=4.0.1.0

为君一笑 提交于 2019-12-04 08:47:59
I have a solution that contains a library and 2 applications. The applications represent the same program, with one built to target the Windows App Store through UAP10 and the other built to target a Microsoft Windows PC using .Net Framework 4.6.1. I'm using Visual Studio 2017. I set the library project target .Net standard 1.4. I set the UWP application to target Windows 10 Aniversary Edition (10.0; Build 14393), Min version Windows 10 (10.0; Build 10586). I set the generic Windows application to target .Net Framework 4.6.1. The UWP version compiles and runs fine. Initially, the .Net

F# method returns null instead of Option

北慕城南 提交于 2019-12-04 07:42:15
I develop F# application .net 4.6.1 on VS2015 . i have methods: type CommonHelper = static member SideEffectOnNull act x = if x = null then act(); x else x static member SideEffectOnNotNull act x = if x <> null then act(); x else x ... static member GetPerformanceCounter ( fname: CounterFullName ) = let getCounterInternal ( counterFullName: CounterFullName ) = Log.Information("Getting counter: {category}\\{name}\\{instance} ", counterFullName.Category, counterFullName.Name, counterFullName.Instance) let receivedCategory = PerformanceCounterCategory.GetCategories().FirstOrDefault( fun x ->

What is the difference between .NET Framework 4.6.1 Targeting Pack and .NET Framework 4.6.1 Runtime?

帅比萌擦擦* 提交于 2019-12-03 10:51:52
I want to develop .net framework 4.6.1 applications using Visual studio 2012.So, I tried to install 4.6.1 developer pack for visual studio 2012.But when I go to this link to install the framework.It provides me two links, one for .NET Framework 4.6.1 Targeting Pack and the other for .NET Framework 4.6.1 Runtime. Which one of these shall I install? To use the framework with Visual Studio 2012 or later install the developer type version. The runtime type version is a lighter version, meant to run applications on servers. This runtime version doesn't have the information/extensions that Visual

Type 'Object' is defined in an assembly that is not referenced (NET Standard 2.0/.NET Framework 4.6.1)

大兔子大兔子 提交于 2019-12-03 01:04:10
I'm using the .NET Standard 2.0 preview, on which my Class Libraries are based. After having trouble with a few NuGet packages, especially regarding archive extraction, I decided to migrate my .NET Core 2.0 Console projects back to the .NET Framework 4.6.1. The .NET Framework 4.6.1 is supposed to implement the .NET Standard 2.0 specification - according to different sources. Especially the dotnet/standard GitHub Repo . Unfortunately, the migration to the .NET Framework resulted in the following errrors throughout all of .NET Framework Console projects: Error CS0012 The type 'Object' is defined

Why can't Jenkins find this .NET AssemblyFoldersEx registry key?

不羁的心 提交于 2019-12-02 19:24:16
问题 So I have a project that builds fine on my development machine, but not on my CI server (Jenkins). Jenkins can't find my Primary Interop Assemblies even after I've copied over various folders from my machine to make them available to it. On my machine, where everything works, I can turn on my Visual Studio's option for "diagnostic"-level output, and I can see how it figures out where these PIA's are at... Primary reference "Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken