Referencing system.management.automation.dll in Visual Studio

I am beginning to look into the PowerShell model and snap-in development. The first thing I notice is to reference System.management.automation.dll. However in Visual Studio, the .NET tab does not...

.NET: Large revision numbers in AssemblyVersionAttribute

We have the convention of versioning our builds as [major].[minor].[micro].[revision], e.g. 2.1.2.33546. Our build-script automatically updates an AssemblyInfo.cs file containing [assembly:...

The designer could not be shown for this file because none of the classes within it can be designed

We have the following shared component: public class OurServiceBase : System.ServiceProcess.ServiceBase This class has functionality we want in all our downstream services, such as standardized...

Unrecognized configuration section system.web.extensions

I created a web site using .NET 4.0 with JSON. I am now trying to host the site on a remote host server (Network Solutions) and I get the following error when I open the web site: Unrecognized...

Getting System.Net.Mail.MailMessage as a MemoryStream in .NET 4.5 beta

So, the below code used to work in .NET 4 to get a System.Net.Mail.MailMessage object as a MemoryStream, however with the release of .NET 4.5 beta a runtime exception occurs. Assembly assembly =...

The predefined type 'System.Threading.Tasks.Task' is defined in multiple assemblies in the global alias

I just have set up a new asp.net mvc 4 project, using the latest .net framework (4.5) in combination with Visual studio 2012. After I added some classes, side projects etc. I suddently notice that...

To prevent possible data loss in windows form c#

If i click to Form1.cs in windows form , i get below exception, To prevent possible data loss before loading the designer , the following errors must be resolved: Loading this assembly would...

Console App with Log4Net compiles in Debug but not in Release mode

I have a simple C#/4.0 console app that reference Log4Net 1.2.13.0 in VS2010. In debug mode the app compiles and runs fine on my machine. However, as soon as I change to 'Release' I get the...

The required property {0} does not exist on the type {1}. Entity framework (model first) when adding FK

I am trying to add foreign key to the database and then I am updating the model. After I update the model, the application gives following error: System.Data.Entity.Core.MetadataException was...

System.Web.Helpers not found in VS2015

I'm trying to add some JSON parsing to the C# code in VS2015 but I can't find: System.Web.Helpers as the MS documentation suggests. I've looked at other people's questions of a similar nature...

Is it faster to increase the pointer than to do "mov [pointer+1],eax"?

Say we want to store a string at EDI. Would it be faster to store it this way mov byte [edi],0 mov byte [edi+1],1 mov byte [edi+2],2 mov byte [edi+3],3 ... or this way? mov byte [edi],0 inc...

Where is the PostAsJsonAsync method in ASP.NET Core?

I was looking for the PostAsJsonAsync() extension method in ASP.NET Core. Based on this article, it's available in the Microsoft.AspNet.WebApi.Client assembly. I had thought Microsoft had changed...

Could not load file or assembly 'Microsoft.CodeAnalysis, version= 1.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependenc

An update occurred last night and now I find myself unable to do a ctrl + '.' for code suggestions in VS 2015. An error message comes up saying the following: Could not load file or assembly...

Why is imul used for multiplying unsigned numbers?

I compiled the following program: #include <stdint.h> uint64_t usquare(uint32_t x) { return (uint64_t)x * (uint64_t)x; } This disassembles to: 0: 89 f8 mov eax,edi 2: 48...

Visual Studio 2017 - Could not load file or assembly 'System.Runtime, Version=4.1.0.0' or one of its dependencies

I am using Visual Studio 2017 and am trying to create a .Net Standard 1.5 library and use it in a .Net 4.6.2 nUnit test project. I am getting the following error... Could not load file or...

Make previous NT stores visible to subsequent memory loads in other threads

I want to store data in a large array with _mm256_stream_si256() called in a loop. As I understood, a memory fence is then needed to make these changes visible to other threads. The description of...

Using assemblies compiled from IL with .NET Core & Xamarin

Updated with a solution that works for me. See the bottom of this question. Context: I needed a way to evaluate the size of a generic type for the purpose of calculating array lengths to fit...

Why NASM on Linux changes registers in x86_64 assembly

I am new to x86_64 assembly programming. I was writing simple "Hello World" program in x86_64 assembly. Below is my code, which runs perfectly fine. global _start section .data msg: db...

.NET Core 2.1 - How to create COM object and generate *.tlb file

I would like to build COM object in .net Core and then register by RegAsm. My .csproj file: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> ...

Error The "ResolveWixReferences" task could not be loaded from the assembly

WiX Toolset v3.11.1 WiX Toolset Visual Studio 2015 Extension Try Integrating WiX Projects Into Daily Builds as following...

How to implement the Plugin Architecture in Flutter Dart

I want to implement a plugin architecture in Flutter Dart. The process will be as follows: User downloads the app. The user loads plugins from our site. The apps look if the plugin implements an...

AuthorizeRouteView Authorizing and NotAuthorized parameters settings

I wanted to use the NotAuthorized attribute in the <AuthorizeRouteView> tag to redirect to the login page every time a non logged-in user try to access a page. Howewer, it requires a...

Unity - type name 'Rigidbody2D' could not be found in the namespace 'UnityEngine' after upgraded project

I just started Unity and I am following a tutorial on Youtube. Everything was working fine until I upgraded my project from 2018.4.13f1 to 2018.4.14f1. And now, I have an error with...

Could not load file or assembly System.Runtime.CompilerServices.Unsafe

I created a Visual Studio (Community 2019) project with C# using ServiceStack.Redis. Since it is C#, I use Windows 10 (there is a Redis version for Windows but it is really old and as I know, it...

ABP/Swashbuckle - Generating swagger docs using Swashbuckle CLI

Using ABP Framework (3.3) and ASP.NET Core (3.1). I'm attempting to generate swagger.json using Swashbuckle.AspNetCore.Cli...

Microsoft.AspNetCore.Components.Forms.InputDate requires a cascading parameter of type EditContext

I'm developing an ASP.NET 5.0 blazor web assembly app. I need to have a datepicker in Dashboard Screen to select a date to display details. Here is my code: <input class="input" type="month"...

When does Linux x86-64 syscall clobber %r8, %r9 and %r10?

I have just browsed the Linux kernel source tree and read the file tools/include/nolibc/nolibc.h. I saw the syscall in this file uses %r8, %r9 and %r10 in the clobber list. Also there is a comment...

When upgrading to .NET 6, Web Project throws runtime exception

Using an existing .NET 5 MVC Web App, I attempted to upgrade to .NET 6, but encountered this error. I am also using IIS for Windows Authentication--now setup in .NET 6 as "profiles" under...

The type or namespace 'Wpf' does not exist in the namespace 'Hamul.Emoji' (are you missing an assembly reference)?

I'm trying to use Emoji.Wpf (https://github.com/samhocevar/emoji.wpf) as shown in their examples but I keep hitting the error The type or namespace 'Wpf' does not exist in the namespace...

Why SFINAE for one of std::basic_string constructors is so restrictive

Background Discussion about this was started under this answer for quite simple question. Problem This simple code has unexpected overload resolution of constructor for std::basic_string: #include...