.net-4.6.1

Adding a reference from a xproj to a csproj

江枫思渺然 提交于 2019-12-13 07:08:58
问题 I have a ".net 4.6.1" (A) project and a ".net core 1.5" (B) project. I want add a reference to "project_B_core_1.5" in my "project_A_net461" . At the beginning I got: A reference could not be added. An assembly must have a 'dll' or 'exe' extension in order to be referenced. Then I tried to add "net461" to "frameworks" in the core project (*). I Tried to add it again to "project_A_net461" , and this time there was no error. The problem is that I can't access the namespace: The type or

Replace existing class definition at runtime with newly created type

China☆狼群 提交于 2019-12-13 02:56:14
问题 Demorepo : https://github.com/gabbersepp/csharp-dynamic-replace-class How to use : Checkout Compile Delete TestLib.dll & TestLib.pdb from console/bin/Debug Execute console.exe through cmd Read first : I have something in mind I want to achieve at work and I think that this would be the best solution. So please do not discuss if I can solve this with another way. If I would like to discuss about this, I will create a new SO post. Given : A class in a lib: namespace Test.TestLib { public class

Cannot Export PrivateKey Before Import Using RSACng and RsaParameter

て烟熏妆下的殇ゞ 提交于 2019-12-12 10:19:42
问题 the next unit test export a privatekey and save it in bytes arrays using the rsa instance then encrypt the "hi" message, all is fine here, but the problem occur when It make rsa2 instance and import the previous privatekey in RSAParameter, then message can be decrypt after import privatekey, but It throw exception when you try to export privatekey of rsa2. Please could you tell me why It can't extract Imported Private key [TestMethod] public void TestRsa() { var rsa = new RSACng(2048); //

WCF method not erroring but not receiving my JSON

拈花ヽ惹草 提交于 2019-12-12 05:19:07
问题 I have setup the following interface and class for my WCF web service, but am having a problem when I post JSON to it, posting XML works fine. [ServiceContract] public interface IWebService { [OperationContract] [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Xml, BodyStyle = WebMessageBodyStyle.Wrapped, UriTemplate = "xml/post")] [return: MessageParameter(Name = "data")] int Test(int x, int y); } public class WebService : IWebService { public int Test(int x, int y) { return x +

“are you missing a using directive or assembly reference?” Am I or am I not?

十年热恋 提交于 2019-12-10 18:15:10
问题 Cleaned and rebuilt everything many times, restarted VS and computer but no progress. Patching some bugs in the QueryCommander open source project, I came across an issue where Debug builds, but Release does not. I get this error in Release mode only : CS0246 The type or namespace name 'AxSHDocVw' could not be found (are you missing a using directive or an assembly reference?) QueryCommander.Help C:\Workspace\QueryCommander_4_0_0_0\QueryCommander.Help\WinGui\FrmHelpBrowser.cs The reference

Can I create a VSTO outlook addin targeting .net framework 4.6.1, which runs on all office versions from 2007 to 2016?

不羁的心 提交于 2019-12-09 19:41:47
问题 I have an outlook addin developed with VS 2008 and for 3.5 framework.Now, I want to upgrade it to latest framework(4.6.1).But when I tried to create an office project in VS 2012 targeting 4.6.1 framework.It only showed me office 2010 template.So, is it not possible to develop a VSTO 2007 addin which targets 4.6.1 framework?I want to stick with VSTO 2007 because it is guaranteed to run on all office versions up to office 2016, as my current addin which targets .net 3.5 does.Whereas if I

This application requires one of the following versions of .NET Framework

可紊 提交于 2019-12-08 17:19:14
问题 I am trying to migrate our application to the newer version of .NET Framework. From current version of 4.5 to 4.6.1 Reason, why we are migrating to version 4.6.1 instead of 4.7 or 4.6.2 is, that most of our users and developers do have Windows 10 November update and based on information from .NET Framework System Requirements, .NET Framework 4.6.1 should be preinstalled in this version of Windows by default. This would leave us without any needs for users to download any kind of update. The

msbuild 14 doesn't work without full .net framework installation

*爱你&永不变心* 提交于 2019-12-08 04:17:52
问题 I have a build machine with visual studio 2010 and multiple build targets. all the other targets that I use works as expected and for some reason the new build of version 14 for .net 4.6.1 doesn't work. When I'm executing the build from command line I get the following error: C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1097,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.6.1" were not found. To resolve this, install the

How to do extreme branding/internationalization in .NET

随声附和 提交于 2019-12-07 03:02:40
问题 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

Unable to resolve error when try dotnet restore multi project solution

北慕城南 提交于 2019-12-06 17:14:13
问题 I've got a solution that builds locally and I've created a new build and added one step to it dotnet restore I'm getting this error message: ... OTHER SUCCESSFUL INSTALLATIONS ... log : Installing Microsoft.Extensions.FileProviders.Abstractions 1.0.0. log : Installing Microsoft.Extensions.Configuration.Abstractions 1.0.0. log : Installing Microsoft.Extensions.DependencyInjection.Abstractions 1.0.0. log : Writing lock file to disk. Path: C:\a\1\s\Wedding.WebApp\project.lock.json log : C:\a\1\s