8

我们正在运行带有几个 TDS 项目的 Sitecore 6.5,并且我一直在尝试让 TFS 构建在我们的 TFS 构建服务器上工作。当项目尝试构建时,我们收到以下错误:

C:\Program Files (x86)\MSBuild\HedgehogDevelopment\SitecoreProject\v9.0\HedgehogDevelopment.SitecoreProject.targets (354): 
Exception Invalid License(Exception) in file sitecore\content.item. 
Stack trace: at HedgehogDevelopment.SitecoreProject.Tasks.CollectSitecoreItems.Execute()

我们已经在构建服务器上安装了 TDS,并且我在注册表中验证了许可证密钥与我们的许可证匹配。不太确定下一步可能是什么。以前有人在 TDS 持续集成构建中遇到过这个问题吗?

4

2 回答 2

10

I appreciate that this is an old question but wanted to add this in case anyone else stumbles upon it.

I've been setting up TDS on Visual Studio Online (what was TFS Online) following this wonderful article from Michael Edwards: http://www.experimentsincode.com/?p=586

Although it's a bit vague at the end of the article - you can actually include the License info with a config file. You have to add this file manually here: C:\Program Files (x86)\MSBuild\HedgehogDevelopment\SitecoreProject\v9.0 Call the file TDSLicense.config

Save the following (with your license information in) in the file:

<?xml version="1.0" encoding="utf-8" ?>
<license Owner="CompanyName" Key="aaaa-bbb-ccc-dddd" />

If it's a permissions issue with reading the license from the registry - this should sort it out.

Micheal's blog post is well worth a read - it goes over and above what I've detailed here.

于 2014-06-10T20:53:18.623 回答
1

我不确定我是否有答案,但我经常发生的两件事是:

  1. Hedgehog许可证每月到期一次(不确定这是不是我公司的协议)
  2. 有时我无法使用 TDS 同步,除非我重新安装 SiteCore 连接器。幸运的是,有一个内置按钮:只需在 Visual Studio 中右键单击 TDS,然后选择“安装 SiteCore 连接器”。

希望这可以帮助。

于 2012-11-07T18:08:17.590 回答