我有几个项目,我正在使用Wix 3.5,以及Paraffin,这是非常好的,但我一直试图弄清楚如何创建Windows计划任务作为安装的一部分.
我可以运行一个创建任务的bat文件,但我不认为这会给我Wix的卸载功能,也不允许我将其定义为设置UI的一部分.
有谁知道如何在Wix 3.5中作为XML配置的一部分创建计划任务?
我在vs2008上使用c ++\cli开发了一个应用程序.如您所知,在任何计算机上部署此应用程序,我需要在目标计算机上安装vc ++ redistributable.
我想知道我是否可以在我的设置中包含vcredist_x86.exe(使用InstallShield创建)并将其安装为预构建事件?
RenderControl方法有一个奇怪的问题.
我有这个标记的UserControl(ASCX文件):
<ul>
<asp:Repeater ID="rptImages" runat="server">
<ItemTemplate>
<li>
<a href="<%# ((Image)Container.DataItem).Url %>">
<img src="<%# ((Image)Container.DataItem).Url %>?mw=80&mh=50" title="<%# ((Image)Container.DataItem).Title %>" alt="<%# ((Image)Container.DataItem).Alt %>" />
<p><%# ((Image)Container.DataItem).Description %></p>
</a>
</li>
</ItemTemplate>
</asp:Repeater>
</ul>
Run Code Online (Sandbox Code Playgroud)
当此代码在正常页面生命周期中执行时(例如,当它被添加到页面时),它会将有效的XHTML呈现为标记:
<ul>
<li>
<a data-fullscreen="/someimage.jpg" href="/another-image.jpg">
<img src="/myimage?mw=80&mh=50" title="Image Title" alt="Alt Text" />
<p></p>
</a>
</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
请注意p标记如何具有结束标记(即使它是空的),并且图像标记也有结束标记.
当我在服务器上实例化此控件并尝试使用RenderControl()方法将其解析为字符串时,如下所示:
StringBuilder builder = new StringBuilder();
using (StringWriter writer = new StringWriter(builder))
{
using (XhtmlTextWriter htmlWriter = new XhtmlTextWriter(writer))
{
var control = (GalleryControl)LoadControl("~/layouts/Controls/Gallery/GalleryControl.ascx");
control.Images = m_images;
control.RenderControl(htmlWriter);
}
}
return …Run Code Online (Sandbox Code Playgroud) 我有一个自定义控件(禁用编辑),我想显示当前登录Domain\User.
我设置这样的属性:
<Property Id="PROP_DOMAINUSER" Value="[%USERDOMAIN]\[LogonUser]"></Property>
Run Code Online (Sandbox Code Playgroud)
但我在编辑框中看到的是确切的文本 - [%USERDOMAIN]\[LogonUser]而不是实际的域和用户.
我如何从另一个属性初始化属性值呢?
我们有一些MVC 3.0 Web应用程序,其中一些是Web Form和MVC3.0在项目/解决方案中的组合.
我对sitecore很陌生,有人可以帮我理解以下关于将现有应用程序迁移到Sitecore的问题吗?
我们应该在什么类型的场景中将MVC3.0剃刀视图移动到sitecore?
将MVC3.0迁移到sitecore有哪些关键问题?
我需要在sitecore管道上注入任何东西吗?
我是否需要更改任何导航链接才能在sitecore下工作?
用于迁移现有Web应用程序的sitecore最佳实践的任何链接都将很好.
我按照下面的博客,仍然不清楚为什么以及何时应该将网页控件和剃刀视图转换为Sitecore渲染.
谢谢.
我尝试使用Sitecore 7索引PDF文件.我安装了IFilter,但我收到了爬虫日志下一个错误:
ManagedPoolThread #17 09:24:20 WARN LuceneIndexOperations : Update : Could not build document data 4433434-3443-3223-91c4-233232. Skipping.
Exception: System.Runtime.InteropServices.COMException
Message: Error HRESULT E_FAIL has been returned from a call to a COM component.
Source: mscorlib
at System.Runtime.InteropServices.ComTypes.IPersistFile.Load(String pszFileName, Int32 dwMode)
at Sitecore.ContentSearch.Extracters.IFilterTextExtraction.FilterLoader.LoadAndInitIFilter(String fileName, String extension)
at Sitecore.ContentSearch.Extracters.IFilterTextExtraction.FilterReader..ctor(String fileName)
at Sitecore.ContentSearch.ComputedFields.MediaItemIFilterTextExtractor.ComputeFieldValue(IIndexable indexable)
at Sitecore.ContentSearch.ComputedFields.MediaItemContentExtractor.ComputeFieldValue(IIndexable indexable)
at Sitecore.ContentSearch.LuceneProvider.LuceneDocumentBuilder.AddComputedIndexFields()
at Sitecore.ContentSearch.LuceneProvider.LuceneIndexOperations.GetIndexData(IIndexable indexable, IIndexable latestVersion, IProviderUpdateContext context)
at Sitecore.ContentSearch.LuceneProvider.LuceneIndexOperations.BuildDataToIndex(IProviderUpdateContext context, IIndexable version, IIndexable latestVersion)
at Sitecore.ContentSearch.LuceneProvider.LuceneIndexOperations.<>c__DisplayClass7.<Update>b__0(Item version)
Run Code Online (Sandbox Code Playgroud)
我必须做什么工作,因为在Sitecore文档中他们说它必须开箱即用.
我已经用NAnt成功构建了这个项目.
现在,如果我使用以下命令编译项目:
nant -D:build.defines=FAKE_AD_AUTH build
Run Code Online (Sandbox Code Playgroud)
我想运行应用程序,因为我知道我编译了项目FAKE_AD_AUTH.
那么我怎么知道这个项目是建造nant -D:build.defines=FAKE_AD_AUTH build还是仅建造nant build?
我有一个 WIX 安装项目,其中包括我的自定义 UI 和一个 WIX Bootstrapper 项目,其中包括我的项目的 exe 和 Msi 形式的先决条件/依赖项。我想将它们组合成一个单独的 exe。如果我在 Bootstrapper 项目中引用了我的 WIX 安装项目,那么它不会显示我的 WIX UI。但是它能够成功安装我的安装程序 msi 和先决条件。
<Bundle Name="Bootstrapper1" Version="1.0.0.0" Manufacturer="Microsoft" UpgradeCode="4056d930-16b2-44eb-a861-16db566ae44c">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />
<Chain>
<PackageGroupRef Id="Y"/>
<MsiPackage SourceFile ="$(var.BiodentifySetUp.TargetPath)" Compressed ="yes" />
</Chain>
</Bundle>
<Fragment>
<PackageGroup Id="Y">
<ExePackage Id="Y" DisplayName="software already install"
DownloadUrl="http://download.microsoft.com/download/5/6/2/562A10F9-C9F4-4313-A044-9C94E0A8FAC8/dotNetFx40_Client_x86_x64.exe"
Compressed="no" Cache="yes" PerMachine="yes" Permanent="yes"
Vital="yes" SourceFile=".\y.msi" InstallCommand="/passive /norestart" />
</PackageGroup>
</Fragment>
Run Code Online (Sandbox Code Playgroud)
如何合并它们以制作exe?
我们的生产服务器遇到了cpu问题.在使用jetbrains cpu profiler进行分析后,我们注意到程序集中的某些函数Sitecore.Analytics已被执行.
这有点奇怪,因为我们在de config文件中禁用了所有与分析相关的配置.
在查看之后/sitecore/admin/showconfig.aspx我们注意到Sitecore.Analytics在这个配置中仍然有很多相关的配置,而这些配置在我们的配置文件中被停用.
例如
在文件中/App_Config/Include/EventHandlers.config,配置如下所示:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<events timingLevel="custom">
</events>
</sitecore>
</configuration>
Run Code Online (Sandbox Code Playgroud)
在查看showconfig.aspx它时看起来像这样:
<events timingLevel="custom">
<event name="forms:save"/>
<event name="item:saved">
<handler type="Sitecore.Analytics.Data.Items.ItemEventHandler, Sitecore.Analytics" method="OnItemSaved"/>
<handler type="Sitecore.Analytics.Automation.Data.Items.ItemEventHandler, Sitecore.Automation.MarketingAutomation" method="OnAutomationStateChanged"/>
</event>
<event name="item:deleted">
<handler type="Sitecore.Analytics.Automation.Data.Items.ItemEventHandler, Sitecore.Automation.MarketingAutomation" method="OnAutomationStateChanged"/>
</event>
<event name="media:request">
<handler type="Sitecore.Analytics.Media.MediaRequestEventHandler, Sitecore.Analytics" method="OnMediaRequest"/>
</event>
</events>
Run Code Online (Sandbox Code Playgroud)
有谁知道为什么这些仍在返回showconfig.aspx?有没有办法完全删除/禁用sitecore分析模块?
我的团队维护一个 JSON 文件,其中包含 GUID 字典,以便我们的服务正确使用版本图像。两个开发人员可以对相同的条目进行不同的更改,因此当他们覆盖文件中的同一行时,无论谁稍后提交都会发生合并冲突。
我们使用 Azure DevOps,我想使用 .gitattributes 在完成拉取请求时始终有效地将“合并我们的”仅在此文件中。但是,Azure DevOps 似乎不尊重此服务器端,因为即使使用 .gitattributes 文件,尝试完成拉取请求仍然会失败。
有一个类似的用户语音请求,但那是不久前的事了。
是否有另一种方法可以实现类似的行为,以防止必须使用 Azure DevOps 进行通常不必要且耗时的单行合并冲突解决?
sitecore ×4
sitecore6 ×3
wix ×3
c# ×2
wix3.5 ×2
.net-3.5 ×1
asp.net ×1
azure-devops ×1
git ×1
installation ×1
nant ×1
sitecore-dms ×1
sitecore7 ×1
visual-c++ ×1
wix3.7 ×1
xml ×1