App.config in Test Projects

Well, if you need a App.config file shared across several projects, I would simply “Add as Link” the original App.config file in each project. Let’s say you have ProjectA with the original App.config. Then you have ProjectATest1 and ProjectATest2. In each of the TestX project: right click on the solution name in Visual Studio select … Read more

Newtonsoft.Json Assembly Conflict

I just had the same problem and I solved it by updating the Newtonsoft.Json to the latest version using Update-Package Newtonsoft.Json and then going to Web.config and adding: <dependentAssembly> <assemblyIdentity name=”Newtonsoft.Json” publicKeyToken=”30ad4fe6b2a6aeed”/> <bindingRedirect oldVersion=”0.0.0.0-4.5.0.0″ newVersion=”5.0.8″/> </dependentAssembly>

How to add a reference to System.Numerics.dll

http://msdn.microsoft.com/en-us/library/7314433t(v=vs.80).aspx From MSDN: In Solution Explorer, select the project. On the Project menu, choose Add Reference. The Add Reference dialog box opens. Select the tab indicating the type of component you want to reference. In the top pane, select the component you want to reference, and then click the Select button. Press CTRL while clicking … Read more

‘Could not load file or assembly ‘netstandard, Version=2.0.0.0, …’. Reference assemblies should not be loaded for execution

The netstandard.dll you are trying to load is a reference assembly that which cannot be loaded for runtime on .NET Framework as pointed out by others. However if you need to resolve that dependency you will need to runtime version that maps to the framework you are trying to run on. For .NET Standard support … Read more

Why does ASP.NET MVC 4 have so many NuGet packages and which are truly important?

As the title says, why do the ASP.NET MVC 4 projects have soooo many NuGet packages? That’s a question you need to ask the designers of the framework. Which ones are truly important for an empty project that will be a website, no API, etc? Here’s the strict minimum that will allow you to configure … Read more

How to register a .NET assembly as COM?

Are you sure you have the right RegAsm in your path since you’re calling it by exe name only without specifying the full path? You must call the right version of RegAsm for it to work, i.e 32 or 64-bit version of .NET 4. Try specifying the full path: c:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe /codebase F:\Workflow\WorkflowHandler\bin\debug\WorkflowHandler.dll or c:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe /codebase … Read more