.net-4.7.1

TFS Tests do not match framework settings

喜欢而已 提交于 2020-12-28 09:56:15
问题 I am attempting to move a solution from TFS 2012 to TFS 2018 SP2RC2 but I can't get the unit tests to run correctly. All projects have been re-targeted to 4.7.1 and are built as x86 platform. We have a testsettings file that supplies nothing but deployment items. I am using the new VSTest Platform Installer task (as directed by MS) and the VS Test Task. At the start of the test run I get the following message: Test run will use DLL(s) built for framework .NETFramework,Version=v4.5 and

How do I prevent .NET 4.7.1 libraries from copying the facade dlls to the bin folder?

北城以北 提交于 2020-02-02 02:43:12
问题 I'm certain there's probably a bunch of things going on here that I don't understand well enough, so forgive me if this is a stupid question or if there's obvious details missing. I have a Visual Studio 2015 solution that I've upgraded from .NET 4.5.1 to .NET 4.7.1. The solution consists of a website (not web app) project, and several libraries. The libraries don't really have any dependencies (except eachother) and while they are targeting .NET 4.7.1, they don't use, need, or reference

Need help writing a binary reader extension method for a specific value format: 6 bit then 7 bits structure

北慕城南 提交于 2019-12-24 21:38:18
问题 Alright so here goes. I currently need to write an extension method for the System.IO.BinaryReader class that is capable of reading a specific format. I have no idea what this format is called but I do know exactly how it works so i will describe it below. Each byte that makes up the value is flagged to indicate how the reader will need to behave next. The first byte has 2 flags, and any subsequent bytes for the value have only 1 flag. First byte: 01000111 ^^^^^^^^ |||____|_ 6 bit value ||___

Build error “An attempt was made to load an assembly with an incorrect format ” after upgrade net framework 4.5.2 to 4.7.1

痴心易碎 提交于 2019-12-19 06:56:42
问题 We are trying to update the framework of our program. We currently have it in version 4.5.2 and we want to update it to version 4.7.1 We have changed all the csproj of the solution, and when we compile in debug, the application compiles and works correctly. But when we do it in release, it fails us with the following error: An attempt was made to load an assembly with an incorrect format: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.1\Facades\System.IO

Build error “An attempt was made to load an assembly with an incorrect format ” after upgrade net framework 4.5.2 to 4.7.1

若如初见. 提交于 2019-12-19 06:56:10
问题 We are trying to update the framework of our program. We currently have it in version 4.5.2 and we want to update it to version 4.7.1 We have changed all the csproj of the solution, and when we compile in debug, the application compiles and works correctly. But when we do it in release, it fails us with the following error: An attempt was made to load an assembly with an incorrect format: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.1\Facades\System.IO

RichTextBox removes escape character from the text

一个人想着一个人 提交于 2019-12-06 09:46:34
问题 before adding the text to RTF property in RichTextBox, i make some processing on the text, add escape character then divide the data to multiline. the text is line1 \n\u001aline2 \n\u001aline3 \n\u001aline4 When i use VS 2015 with .Net 4.6.2 the value in RTF property is {\\rtf1\\fbidis\\ansi\\deff0{\\fonttbl{\\f0\\fnil\\fcharset0 Arial;}}\r\n\\viewkind4\\uc1\\pard\\ltrpar\\lang3073\\fs24 Line1 \\par\r\n\\v\\'1a\\v0 Line2 \\par\r\n\\v\\'1a\\v0 Line3 \\par\r\n\\v\\'1a\\v0 Line4\\par\r\n}\r\n

Build error “An attempt was made to load an assembly with an incorrect format ” after upgrade net framework 4.5.2 to 4.7.1

拜拜、爱过 提交于 2019-12-01 05:19:23
We are trying to update the framework of our program. We currently have it in version 4.5.2 and we want to update it to version 4.7.1 We have changed all the csproj of the solution, and when we compile in debug, the application compiles and works correctly. But when we do it in release, it fails us with the following error: An attempt was made to load an assembly with an incorrect format: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.1\Facades\System.IO.Compression.ZipFile.dll We don't really know what's wrong, does anyone know what it could be? Thank you