小编Cia*_*anM的帖子

如何让nuget(powershell)在目标csproj文件中插入<DependentUpon>元素

我正在为一个Windows服务编写一个nuget包,我的想法是我的同事可以创建一个Windows服务安装包,并且将为他们设置所有默认的日志记录设置,entlib库和其他的house keep任务.

除了一件令我疯狂的事情之外,我已经完成了一切工作.

在我的nuget目录的content文件夹中,我有Service.cs和Service.Designer.cs这些被添加到目标csproj但它们没有相关.

当我看到csproj文件时,我看到:

<Compile Include="Service.cs">
  <SubType>Component</SubType>
</Compile>
<Compile Include="Service.Designer.cs" />
Run Code Online (Sandbox Code Playgroud)

但我想看到:

<Compile Include="Service.cs">
  <SubType>Component</SubType>
</Compile>
<Compile Include="Service.Designer.cs">
  <DependentUpon>Service.cs</DependentUpon>
</Compile>
Run Code Online (Sandbox Code Playgroud)

任何想法,非常确定它将涉及install.ps脚本,但我的powershell技能是不存在的?

顺便说一句,可以用nuget来删除/覆盖文件吗?到目前为止它似乎只是跳过了.

powershell csproj envdte nuget nuget-package

11
推荐指数
2
解决办法
2934
查看次数

JQuery Mobile可折叠内容

我一直在考虑使用http://jquerymobile.com/demos/1.0a2/docs/content/content-collapsible.html来建立我正在建立的网站.

有没有办法更改用于展开和折叠部分的图标.在mooment我无法看到从+和 - 图标改变它的方法.

客户更喜欢箭头或不同的图标.

谢谢,Cian

jquery-mobile

8
推荐指数
1
解决办法
5636
查看次数