dotnet

阅读 / 问答 / 标签

dotnetfx35setup.exe是什么?有什么用处啊

dotNetFx35setup.exe是 .netFramework 框架 就是普通的PC程序开发用的。

安装DotNetCore.1.0.1-WindowsHosting.exe失败,请教有知道原因的吗

一般卸载干净,重启安装就可以了~~ 最好提供下错误的详细报告!!记得采纳哦我是XYB

dotnet core能写windows service吗?

使用Dotnet core编写Window Service程序实践近年来,需要编写windows service的情况越来越少,但偶尔也会用到,比如计算机定期执行数据整理的任务等等1、创建工程我的习惯是建立三个工程,一个Windows Service主程序,一个Console主程序,一个业务逻辑库使用dotnet core命令创建工程首先,可以使用dotnet new --list命令查看可以创建的工程类型dotnet new console -n test-app // 创建Console应用,名称为“test-app”(可选)dotnet new worker -n xxxxService // 创建Worker Service应用,用于创建Windows服务dotnet new classlib -n xxxxBll // 创建类库,用于编写业务逻辑代码(可选)dotnet new sln -n xxxx // 创建解决方案使用VS、VSCode或Rider等IDE打开解决方案,把项目添加到solution中,建立引用关系等操作。注:Worker Service程序相对于以往的Windows Service开发,可以直接进行调试,小的工程也可以直接创建Worker,而无需创建test-app调试用工程与BLL类库。2、业务逻辑编写与调试设置test-app为启动项,可以方便的进行开发和调试,把业务逻辑代码都写到BLL中。3、开发Windows Service 3.1、把Worker Service改造成Windows Service1、在项目中添加nuget包:Microsoft.Extensions.Hosting.WindowsServices,选好对应版本。 例如,我的Microsoft.Extensions.Hosting版本是3.1.3,于是选择Microsoft.Extensions.Hosting.WindowsServices的版本为3.1.32、在program.cs内部,将UseWindowsService()添加到CreateHostBuilder Host.CreateDefaultBuilder(args) .UseWindowsService() .ConfigureServices((hostContext, services) => { services.AddHostedService<Worker>(); });3、把BLL与Worker Service程序做好关联即可发布。

C#如何获取DotNet.Utilities类库的相关帮助

不存在这样的SYSTEM下面找找

.net 第三方控件dotnetbar中sidebar使用

这个要用CSS样式来控制的

如何取得DevComponents.DotNetBar.SideBar

SideBar用一个itemContainer集合来维护其下的panel非空的panel会在你从UI添加控件的时候创建一个controlContainerItem来维护其中的控件。你可以使用如下代码做一个测试就知道该如何遍历SideBar的子控件了foreach (BaseItem bi in sideBar1.ItemsContainer.SubItems) { MessageBox.Show("Panel:" + bi.Name); foreach (BaseItem subBi in ((SideBarPanelItem)bi).SubItems) MessageBox.Show("SubItem:" + subBi.Name); }如果你在添加buttonItem等子控件时指定了其Name属性,也可以直接使用SideBar的GetItem和GetItems方法,如下:sideBar1.GetItem("btn")即可返回Name属性为btn的控件,类型为baseItem,需要自行转换后使用。此方法是针对SideBar下所有子控件,包括深层的,所以它可以用来获取包括panel、buttonItem等等在各个层面的容器下的控件。顺便一提,DotNetBar的很多复杂容器控件都有类似的方法方便用户使用,平时应该多多注意控件的Name属性。例如使用DotNetBarManager时便可方便的根据制定的Name获取其管理的任意一个Bar,或者是Bar上停靠的Tab等等。如有疑问请留言或QQ176229432

dotnet publish PublishProfile问题

在使用dotnet publish发布时,遇到PublishProfile的一个问题,如果文件名中有.号,会被忽略,比如,如果使用下面的命令: dotnet publish ./src/IDS4Admin.STS.Identity/IDS4Admin.STS.Identity.csproj /p:Configuration=Release /p:PublishProfile=FolderProfile3.1 实际上使用的是FolderProfile3,后面的部分被忽略,如果希望使用这个文件,需要增加文件后缀 dotnet publish ./src/IDS4Admin.STS.Identity/IDS4Admin.STS.Identity.csproj /p:Configuration=Release /p:PublishProfile=FolderProfile3.1.pubxml