English 中文(简体)
用点击ce的延迟信号
原标题:Delay sign with clickonce

我有一份ClickOnce申请,其依据是所签署的(有pfx)集会的延误。 目前,我依靠我的项目的突然目标来建立我的ClickOnce部署,并希望尽可能保持这一部署(避免浪费)。

我的问题是,包裹的集会仍然被推迟签署,因为在出版发行时,我没有机会经营“sn-Rc......”。 是否有办法 h清在建造/建造后签署我的议会的突然目标。 如果在出版发行时,我也可以在出版前签署集会,从而启动建筑。

任何建议?

Some leads that I m not sure how to pursue: - sign assemblies in the .deploy files - re use the .manifest and .application files generated by the publish target to create new deployment with signed assemblies

简言之,我如何利用(有或没有花钱)出版目标产生的马尼比/应用程序,以建立新的部署? Same文档略有不同。

Thanks, Benoit

问题回答

我的问题是,包裹的集会仍然被推迟签署,因为在出版发行时,我没有机会经营“sn-Rc......”。 是否有办法 h清在建造/建造后签署我的议会的突然目标。

我很晚才这样做,但我最近也这样做了,设法将一项任务纳入到在建筑任务之后直接标志集会(而不是宣言)的小额信贷机构。 因此,辞职是在出版前完成的。

我将引用以下目标文件的相关内容:

  <PropertyGroup Label="ProjectInfo">
    <AssemblyExtension Condition=" $(OutputType)  ==  Library ">.dll</AssemblyExtension>
    <AssemblyExtension Condition=" $(OutputType)  ==  WinExe ">.exe</AssemblyExtension>
    <AssemblyExtension Condition=" $(OutputType)  ==  Exe ">.exe</AssemblyExtension>
  </PropertyGroup>

  <PropertyGroup Label="Signing">
    <!-- the build server keeps the private key a secret; the path to the key file also containing 
         the private key is injected via build server environment -->
    <StrongNameKeyFile>$(STRONG_NAME_KEY)</StrongNameKeyFile>
    <IsBuildServer>$(BUILDSRV)</IsBuildServer>
  </PropertyGroup>

  <Target Name="Hook_AfterBuild" AfterTargets="AfterBuild">
  </Target>

  <!-- Fully sign the delay signed assembly on the build server -->
  <Target Name="FullySignAssembly" AfterTargets="Hook_AfterBuild"
          Condition="  $(IsBuildServer)  ==  true  And  $(DelaySign)  ==  true  And  $(SignAssembly)  ==  true  ">
    <Exec Command="sn.exe -Ra $(OutputPath)$(AssemblyName)$(AssemblyExtension) $(StrongNameKeyFile)"/>
  </Target>




相关问题
How can I overwrite file web.config with web.other.config?

I have a msbuild script with custom logic to deploy my service to the qa server automatically. I have to overwrite the default config with a dedicated one, but when I use <Copy SourceFiles="web....

How do I use MSBuild on a C# project with no compilable code

I have a C# web app project which actually has no ASP.Net or C# in it. It s just a single html page with some Javascript, CSS, and a couple of images. I want to use MSBuild to deploy a version of ...

您能否防止MSBuild.exe经营活动?

我用文字建造一些项目,偶尔利用习俗制造事件,给建筑系统造成了很大困难。 如果有可能,我想援引MSBuild.exe。

building .net applications without Visual Studio

I m interested to hear about people working with building .net applications using MSBuild, NAnt or similar tools. What are you using, why are you using it instead of the VS IDE? I like to use ...

How long does my Visual Studio C# compile take?

It seems like it should be possible to configure Visual Studio to print out how long the compile takes. Perhaps somewhere in the .sln file. If the sln is compiled from the command line using ...

热门标签