I'm trying to create a CustomActivity to run after each successful build.
I've followed the exact steps of several tutorials
TF215097: An error occurred while initializing a build for build definition
\MyCompany\Dev - Client: Cannot create unknown type '{clr-
namespace:BuildTasks.Activities;assembly=BuildTasks}TFSBuildLocalizer'.
"$(DevEnvDir)\TF.exe" checkout "$/MyCompany/Development/Djenne/Dev/Tools/BuildProcess/Output/$(TargetFileName)"
copy /Y "$(TargetPath)" "C:\tfs2010\MyCompany\Dev\Tools\BuildProcess\Output\$(TargetFileName)"
"$(DevEnvDir)\TF.exe" checkin "$/MyCompany/Development/Djenne/Dev/Tools/BuildProcess/Output/$(TargetFileName)"
[BuildActivity(HostEnvironmentOption.All)]
<ProjectTypeGuids>{32f31d43-81cc-4c15-9de6-3fc5453562b6};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
最佳答案
好吧,我明白了这件事。
这是对我有用的东西:
我已经将我的dll安装到了构建服务器中的GAC,运行了构建,突然工作了!
gacutil.exe /i buildtasks
gacutil.exe /u buildtasks
cd "C:\tfs2010\Djenne\Dev\Tools\BuildProcess\Output\"
"$(DevEnvDir)\TF.exe" checkout "$/TradeNetworks/Development/Djenne/Dev/Tools/BuildProcess/Output/*.*"
xcopy "$(TargetDir)*.*" "C:\tfs2010\Djenne\Dev\Tools\BuildProcess\Output\" /E /R /C /Y
关于xaml - 错误 'TF215097:...Cannot create unknown type for...'自定义CodeActivity,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3753713/