我有一个TeamCity构建配置,其中包含以下内容来发布工件:
Source\Builder\bin\Release\*.dll=>release
Run Code Online (Sandbox Code Playgroud)
这工作正常,但我想排除一个DLL(有很多),并已阅读,你可以使用+& - 运算符来做到这一点.有点像:
+: Source\Builder\bin\Release\*.dll=>release
-: Source\Builder\bin\Release\Builder.*
Run Code Online (Sandbox Code Playgroud)
只要我添加这些工件,就不会发布任何工件,并且我在构建日志中遇到以下错误(看起来它正在计算+作为路径的一部分):
[Publishing artifacts] Collecting files to publish [+:Source\Builder\bin\Release\*.dll=>release]
[Publishing artifacts] Artifacts path +:Source/Builder/bin/Release/*.dll not found
Run Code Online (Sandbox Code Playgroud)
我正在使用版本7.1.1,任何人的想法(我不确定这些运算符是否有效).我已经看到了MSBuild的解决方案,但我很惊讶这个功能不可用.
提前致谢.
我在VB.Net环境中工作,最近的任务是创建一个MVC环境,作为工作的基础.我决定将最新的SharpArchitecture版本(2009年第3季度)转换为VB,总体来说,经过一些头发拉动后,它已经很好了.我遇到了Castle Windsor的一个问题,我的自定义存储库接口(位于核心/域项目中)在我的测试控制器的构造函数中引用了没有注入具体实现(来自数据项目).我用这个打了一堵砖墙,所以基本上决定把Castle Windsor换成StructureMap.
我认为我已经实现了这一点,因为一切都编译并运行,并且我的控制器在引用自定义存储库接口时运行正常.现在看起来我已经/或者现在无法正确设置我的通用接口(我希望这对我所有这些都是新的有意义).当我在控制器构造函数中使用IRepository(Of T)(希望它注入Repository(Of Type)的具体实现)时,我收到以下运行时错误:
"StructureMap异常代码:202没有为PluginFamily定义的默认实例SharpArch.Core.PersistenceSupport.IRepository`1 [[DebtRemedy.Core.Page,DebtRemedy.Core,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null]],SharpArch .Core,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = b5f559ae0ac4e006"
以下是我正在使用的代码摘录(我的项目名为DebtRemedy).
我的structuremap注册表类
Public Class DefaultRegistry
Inherits Registry
Public Sub New()
''//Generic Repositories
AddGenericRepositories()
''//Custom Repositories
AddCustomRepositories()
''//Application Services
AddApplicationServices()
''//Validator
[For](GetType(IValidator)).Use(GetType(Validator))
End Sub
Private Sub AddGenericRepositories()
''//ForRequestedType(GetType(IRepository(Of ))).TheDefaultIsConcreteType(GetType(Repository(Of )))
[For](GetType(IEntityDuplicateChecker)).Use(GetType(EntityDuplicateChecker))
[For](GetType(IRepository(Of ))).Use(GetType(Repository(Of )))
[For](GetType(INHibernateRepository(Of ))).Use(GetType(NHibernateRepository(Of )))
[For](GetType(IRepositoryWithTypedId(Of ,))).Use(GetType(RepositoryWithTypedId(Of ,)))
[For](GetType(INHibernateRepositoryWithTypedId(Of ,))).Use(GetType(NHibernateRepositoryWithTypedId(Of ,)))
End Sub
Private Sub AddCustomRepositories()
Scan(AddressOf SetupCustomRepositories)
End Sub
Private Shared Sub SetupCustomRepositories(ByVal y As IAssemblyScanner)
y.Assembly("DebtRemedy.Core") …Run Code Online (Sandbox Code Playgroud) vb.net structuremap asp.net-mvc ioc-container s#arp-architecture
我目前正在使用validate插件来验证表单(使用ASP.Net控件).我已经从form.validate方法中的标准设置中删除了规则,即:
$("form").validate({
rules: {
ctl00$ContentPlaceHolder1$dgQuestions$ctl14$iRadList_Col0: "required"
}
});
Run Code Online (Sandbox Code Playgroud)
我现在有各种各样的功能,根据点击的按钮添加ruless.这适用于文本框,但对于RadiobuttonList,当插件尝试添加规则时,会出现错误,指出该元素未定义.
function addRuleSet() {
$("#ctl00$ContentPlaceHolder1$dgQuestions$ctl14$iRadList_Col0").rules("add", { required: true });
Run Code Online (Sandbox Code Playgroud)
}
我认为问题在于我使用name属性(asp puts $ in)来定义单选按钮所属的组而不是id(但在静态设置中,所有元素都使用name属性进行定义.无论如何我不知道如何为一组相关的单选按钮添加规则,任何建议将不胜感激.
PS我真的需要调用RadioButtonList而不是单独的单选按钮.
我目前正在使用angular-cli项目(1.0.0-beta.25.5)与ngrx来管理状态.我已经按照这篇文章设法让热模块替换工作,但是当发生这种情况时我还没有找到维持状态的方法.
我见过以下但是无法获得任何工作或获取灵感:
https://github.com/AngularClass/angular2-hmr(想想你需要访问webpack config来添加加载器)
Angular 2:虽然关于HMR和@ngrx/store(尝试了get__HMR__state但是对我不起作用)
有没有人对如何处理这个有任何想法或建议?我希望继续使用cli,因此需要找到一种与此集成的方法.
编辑:在这里找到有同样问题的人https://github.com/ngrx/store/issues/311
我一直在尝试让 Cypress 代码覆盖率与我的 Angular 生产项目一起使用,但没有成功。
为了尝试帮助诊断它,我创建了一个最小的实施项目,以确保我没有在生产版本中引入任何奇怪的东西,我不认为我是这样,因为同样的问题仍在发生。它开始让我发疯了!
我使用了一些参考资料,据我所知,我已经准备好了所需的东西:
据我所知,Angular 和 Cypress 端都已连接,并且正在 .nyc_output 文件夹中获取输出和覆盖率报告。然而,该报告并未表明打字稿行覆盖率或包括这些统计数据。
我看过这个,但似乎没有帮助。
代码检测(webpack扩展+ angular.json):
module.exports = {
module: {
rules: [
{
test: /\.(js|ts)$/,
loader: "istanbul-instrumenter-loader",
options: { esModules: true },
enforce: "post",
include: require("path").join(__dirname, "..", "src"),
exclude: [
/\.(e2e|spec)\.ts$/,
/node_modules/,
/(ngfactory|ngstyle)\.js/,
],
},
],
},
};
Run Code Online (Sandbox Code Playgroud)
"serve": {
"builder": "ngx-build-plus:dev-server",
"options": {
"browserTarget": "architecture-testing:build",
"extraWebpackConfig": "./cypress/coverage.webpack.js",
"sourceMap": true
},
"configurations": {
"production": {
"browserTarget": "architecture-testing:build:production"
}
}
}
Run Code Online (Sandbox Code Playgroud)
Cypress 似乎正在记录并保存报道:
const registerCodeCoverageTasks …Run Code Online (Sandbox Code Playgroud) angular ×2
angular-cli ×1
asp.net ×1
asp.net-mvc ×1
build ×1
cypress ×1
forms ×1
istanbul ×1
ngrx ×1
nyc ×1
structuremap ×1
teamcity ×1
vb.net ×1