.net-standard-2.0

Why .NET Standard 2 build references many assemblies instead of single netstandard.dll assembly

不打扰是莪最后的温柔 提交于 2021-02-17 05:16:30
问题 Unlike .NET Standard 1, .NET Standard 2 introduces a single netstandard.dll reference assembly. However, when compiling (with .NET Core SDK 2.2.203) with dotnet build we can see that it adds references to many assemblies (113), all under netstandard.library/2.0.3/build/netstandard2.0/ref/*.dll . One of these references is netstandard.dll . $ grep TargetFramework *.csproj <TargetFramework>netstandard2.0</TargetFramework> $ dotnet build --verbosity normal | grep -o netstandard.library/2.0.3

Why .NET Standard 2 build references many assemblies instead of single netstandard.dll assembly

大城市里の小女人 提交于 2021-02-17 05:15:13
问题 Unlike .NET Standard 1, .NET Standard 2 introduces a single netstandard.dll reference assembly. However, when compiling (with .NET Core SDK 2.2.203) with dotnet build we can see that it adds references to many assemblies (113), all under netstandard.library/2.0.3/build/netstandard2.0/ref/*.dll . One of these references is netstandard.dll . $ grep TargetFramework *.csproj <TargetFramework>netstandard2.0</TargetFramework> $ dotnet build --verbosity normal | grep -o netstandard.library/2.0.3

Using SAS Token with Azure ServiceBus

我与影子孤独终老i 提交于 2021-02-11 16:56:57
问题 I am using new Azure ServiceBus SDK which is .NET Standard 2.0 and I am finding it difficult to use SAS Token. Previously, it used to be MessagingFactory but in new SDK it's not there. ServiceBusConnectionStringBuilder has SAS Token but it also expects a connectionString. Basically, I want to Send and Receive using SAS Policy (Send rule for Sending and Receive rule for Receiving) and SAS token created from connection string of these policies. I am able to generate SAS Token but cannot find a

How to run VBScript in .net core or .net standard project?

只谈情不闲聊 提交于 2021-02-11 06:12:47
问题 i know it`s dead-end and stupid idea, but still... Do you know any nuget or workaround ways to run VBScript within .Net Core or .Net Standard projects? I`ve tried to use ClearScript.V8 nuget (https://www.nuget.org/packages/ClearScript.V8/) from Microsoft. It does not support .net standard 2.0 at all. I would appreciate for any ideas. Thanks. 来源: https://stackoverflow.com/questions/51020687/how-to-run-vbscript-in-net-core-or-net-standard-project

How to run VBScript in .net core or .net standard project?

这一生的挚爱 提交于 2021-02-11 06:12:33
问题 i know it`s dead-end and stupid idea, but still... Do you know any nuget or workaround ways to run VBScript within .Net Core or .Net Standard projects? I`ve tried to use ClearScript.V8 nuget (https://www.nuget.org/packages/ClearScript.V8/) from Microsoft. It does not support .net standard 2.0 at all. I would appreciate for any ideas. Thanks. 来源: https://stackoverflow.com/questions/51020687/how-to-run-vbscript-in-net-core-or-net-standard-project

How to set PipeSecurity of NamedPipeServerStream in .NET Core

落爺英雄遲暮 提交于 2021-01-27 22:55:29
问题 I'm porting a library from .NET Framework 4.6.1 to .NET Standard 2.0. In Framework, the NamedPipeServerStream constructor could take a PipeSecurity parameter, but that isn't an option in Core. How do you set the security of a NamedPipeServerStream in Core? 回答1: Apparently it's a known issue System.IO.Pipes.AccessControl package does not work #26869. There's a workaround mentioned in the last post suggesting usage of NamedPipeServerStream.NetFrameworkVersion nuget package which will expose

System.Data.Linq in netstandard20

亡梦爱人 提交于 2020-12-25 03:42:06
问题 I have a netstandard20 project that references a .Net 4.6 Project, all compiles and runs except where I call any functionality in the .Net 4.6 project, I get the following error. FileNotFoundException: Could not load file or assembly 'System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified. In VS 2017, in the project explorer under Dependancies / SDK / Microsoft.NETCore.App I can see System.Data.dll and System.Data.Common

System.Data.Linq in netstandard20

孤人 提交于 2020-12-25 03:40:47
问题 I have a netstandard20 project that references a .Net 4.6 Project, all compiles and runs except where I call any functionality in the .Net 4.6 project, I get the following error. FileNotFoundException: Could not load file or assembly 'System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified. In VS 2017, in the project explorer under Dependancies / SDK / Microsoft.NETCore.App I can see System.Data.dll and System.Data.Common