.net-core

How to access the Dispatcher from a .net Core 3.1 dll (WPF)

北城以北 提交于 2021-01-16 04:03:21
问题 I read: .NET Dispatcher, for .NET Core? I'm not able to apply both solution. Solution of JBSnorro: Unable to find how to switch to "Microsoft.NET.Sdk.WindowsDesktop". Solution of codevision: I use .net Core 3.1 instead of .net Core 3.0 and a .dll instead of .exe. The result is Any idea how to access the Dispatcher from .net-core 3.1? IMPORTANT Clemens solution works great. Also, by reloading the project directly from Visual Studio has the advantage to tell you more about the problem hidden in

How to access the Dispatcher from a .net Core 3.1 dll (WPF)

馋奶兔 提交于 2021-01-16 04:02:38
问题 I read: .NET Dispatcher, for .NET Core? I'm not able to apply both solution. Solution of JBSnorro: Unable to find how to switch to "Microsoft.NET.Sdk.WindowsDesktop". Solution of codevision: I use .net Core 3.1 instead of .net Core 3.0 and a .dll instead of .exe. The result is Any idea how to access the Dispatcher from .net-core 3.1? IMPORTANT Clemens solution works great. Also, by reloading the project directly from Visual Studio has the advantage to tell you more about the problem hidden in

How to access the Dispatcher from a .net Core 3.1 dll (WPF)

余生颓废 提交于 2021-01-16 04:00:38
问题 I read: .NET Dispatcher, for .NET Core? I'm not able to apply both solution. Solution of JBSnorro: Unable to find how to switch to "Microsoft.NET.Sdk.WindowsDesktop". Solution of codevision: I use .net Core 3.1 instead of .net Core 3.0 and a .dll instead of .exe. The result is Any idea how to access the Dispatcher from .net-core 3.1? IMPORTANT Clemens solution works great. Also, by reloading the project directly from Visual Studio has the advantage to tell you more about the problem hidden in

How to access the Dispatcher from a .net Core 3.1 dll (WPF)

走远了吗. 提交于 2021-01-16 03:55:50
问题 I read: .NET Dispatcher, for .NET Core? I'm not able to apply both solution. Solution of JBSnorro: Unable to find how to switch to "Microsoft.NET.Sdk.WindowsDesktop". Solution of codevision: I use .net Core 3.1 instead of .net Core 3.0 and a .dll instead of .exe. The result is Any idea how to access the Dispatcher from .net-core 3.1? IMPORTANT Clemens solution works great. Also, by reloading the project directly from Visual Studio has the advantage to tell you more about the problem hidden in

What .Net Core version to use on agent

强颜欢笑 提交于 2021-01-07 07:00:24
问题 Working on a dotnet core test pipeline, running on a Windows Self hosted agent, I have errors. As my project uses DotNet Core 3.1 and when I run "dotnet --version" on the agent it gives 5.0.100, I thought I had to install DotNet Core 3.1 but looking at Add/Remove Programs, I see versions 3.1.301 and 5.0.100 My pipeline contains: job: Test displayName: 'Test' steps: task: UseDotNet@2 inputs: packageType: 'sdk' version: '3.1.x' task: NuGetAuthenticate@0 displayName: 'Authenticate with NuGet'

What .Net Core version to use on agent

岁酱吖の 提交于 2021-01-07 06:59:25
问题 Working on a dotnet core test pipeline, running on a Windows Self hosted agent, I have errors. As my project uses DotNet Core 3.1 and when I run "dotnet --version" on the agent it gives 5.0.100, I thought I had to install DotNet Core 3.1 but looking at Add/Remove Programs, I see versions 3.1.301 and 5.0.100 My pipeline contains: job: Test displayName: 'Test' steps: task: UseDotNet@2 inputs: packageType: 'sdk' version: '3.1.x' task: NuGetAuthenticate@0 displayName: 'Authenticate with NuGet'

How To Add NuGet Source Only Package Dependencies

◇◆丶佛笑我妖孽 提交于 2021-01-07 06:36:32
问题 I have a framework that I've created to be used with Microsoft's CRM/XRM/CDS/PowerPlatform/DataVerse plugins. These plugins can not contain any dependencies on external non-.Net Framwork non-MicrosoftSDK dlls. Rather than ILMerging dependencies I've made use of NuGet's Source Only Packages that allow the source files themselves to be shared via NuGet, removing the need for referencing and ILMerging other dlls. I'm attempting to make these NuGet Packages dotnetcore compatible. There are two

How To Add NuGet Source Only Package Dependencies

懵懂的女人 提交于 2021-01-07 06:35:10
问题 I have a framework that I've created to be used with Microsoft's CRM/XRM/CDS/PowerPlatform/DataVerse plugins. These plugins can not contain any dependencies on external non-.Net Framwork non-MicrosoftSDK dlls. Rather than ILMerging dependencies I've made use of NuGet's Source Only Packages that allow the source files themselves to be shared via NuGet, removing the need for referencing and ILMerging other dlls. I'm attempting to make these NuGet Packages dotnetcore compatible. There are two

How to add html using Razor templates from database to views at runtime

江枫思渺然 提交于 2021-01-07 01:37:08
问题 In ASP.NET Core 5 MVC shopping cart application users can change shipping price calculation, discount options and other such things at runtime. They are editing Razor templates in text editor outside Visual Studio and outside application using non .NET application. Those templates are saved in database. Views contain hook calls: @inherit ViewPageBase<object> <head> @Hook(ElementName.BeforeHeadContent) ... <body> @Hook(ElementName.Body) ... @Hook(ElementName.Footer) ... </body> Hook method is

How to add html using Razor templates from database to views at runtime

*爱你&永不变心* 提交于 2021-01-07 01:36:54
问题 In ASP.NET Core 5 MVC shopping cart application users can change shipping price calculation, discount options and other such things at runtime. They are editing Razor templates in text editor outside Visual Studio and outside application using non .NET application. Those templates are saved in database. Views contain hook calls: @inherit ViewPageBase<object> <head> @Hook(ElementName.BeforeHeadContent) ... <body> @Hook(ElementName.Body) ... @Hook(ElementName.Footer) ... </body> Hook method is