显然,我发现的关于多阶段构建的所有文章都涵盖了快乐的道路.
但是,如果出现问题,如何从构建器容器中获取测试结果(例如单元或验收测试)?
我正在尝试构建我的项目,但当项目构建并勾选了“注册 COM 互操作”属性时,我突然开始收到以下错误。
程序集“c:\MyAssembly.dll”无法转换为类型库。类型库导出程序在处理“SomeType, MyAssembly”时遇到错误。错误:在托管组件中定义了引用类型,该组件是从无法加载的类型库导入的(类型:'OtherType';组件:'c:\OtherAssembly.dll')。
团队中没有其他人收到此错误,只有我!显然,我对我的机器做了一些奇怪的事情,但是完全删除/删除和重新添加我能想到的所有东西的蛮力方法没有任何区别,所以我辞职去真正理解这个错误(多么拖累!)
所以:
我正在创建一个Python Flask应用程序,并在下面创建了装饰器和视图.装饰器在查看索引时效果很好,但是当您注销并使用url_for索引重定向时,它会抛出一个构造函数.为什么会
def logged_in(fn):
def decorator():
if 'email' in session:
return fn()
else:
return render_template('not-allowed.html', page="index")
return decorator
@app.route('/')
@logged_in
def index():
email = session['email']
return render_template('index.html', auth=True, page="index", marks=marks)
@app.route('/sign-out')
def sign_out():
session.pop('email')
print(url_for('index'))
return redirect(url_for('index'))
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?错误是:BuildError: ('index', {}, None)
我正在处理一个 resw 文件以输入我的 uwp 应用程序字符串,但是在我完成 resw 文件后,当我想构建应用程序时,它向我显示了上面列出的错误:
C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets(264,5):Xaml 内部错误错误 WMC9999:根级别的数据是无效的。第 1 行,位置 1。
在我排除文件后,但它仍然显示此错误!这是什么错误 & 为什么我得到这个?
我有多个项目的解决方案。我有正确的构建顺序和依赖性。可以在具有完全相同版本的Visual Studio 2017(26430.13)的不同计算机上构建该项目。唯一的区别是,当前我正在尝试在Windows 10上构建。另一个(可以构建的)系统是Win 8.1。但是在带有Win 10的第三台计算机上也可以构建。
我的问题是系统上的以下内容无法建立解决方案:
有一个名为ucx.v2的项目(名称空间:pcbox)。当我构建此项目时,没有错误,并且可以正确构建。
还有一个名为Timer的项目。该项目在参考文献中引用了ucx.v2。没坏 在构建该项目时,我遇到了100多个关于参考错误的错误。
生成顺序是正确的,因为当我构建Timer项目时,首先它开始构建ucx.v2项目,并完成而没有任何错误。
我尝试了以下方法:-重新启动VS。-清理解决方案,重建项目-从Timer项目中删除引用,然后再次添加它,但没有任何运气。
注意:我已经从工作机中复制了解决方案。
这是错误日志:
1>------ Build started: Project: ucx.v2, Configuration: Debug Any CPU ------
1>c:\Users\david\Documents\Visual Studio 2017\Projects\NomalGit\ucx.v2\forms\UcDataAdapter.cs(463,21,463,28): warning CS0108: 'UcDataAdapter.Dispose()' hides inherited member 'Component.Dispose()'. Use the new keyword if hiding was intended.
1>c:\Users\david\Documents\Visual Studio 2017\Projects\NomalGit\ucx.v2\ras\RasConnectionNotify.cs(35,69,35,93): warning CS0618: 'WaitHandle.Handle' is obsolete: 'Use the SafeWaitHandle property instead.'
1>c:\Users\david\Documents\Visual Studio 2017\Projects\NomalGit\ucx.v2\ras\RasConnectionNotify.cs(52,69,52,93): warning CS0618: 'WaitHandle.Handle' is obsolete: 'Use the SafeWaitHandle property instead.'
1>c:\Users\david\Documents\Visual Studio 2017\Projects\NomalGit\ucx.v2\data\CommandBatch.cs(53,34,53,36): warning CS0168: The variable 'ex' is declared but never …Run Code Online (Sandbox Code Playgroud) 在我的 .net Core 应用程序的 Main 方法中,我收到此错误,我不知道应该在哪里寻找解决方案。
这是我的主要方法:
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.UseApplicationInsights()
.Build();
host.Run();
}
Run Code Online (Sandbox Code Playgroud)
这是我在按 F5 启动项目时收到的错误消息:
System.MissingMethodException: 'Method not found: 'System.IServiceProvider Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection)'.'
Run Code Online (Sandbox Code Playgroud) 请帮帮我。我已经被这个问题困住了这么久。构建应用程序时出现此错误
错误:任务 ':app:transformClassesWithDexForDebug' 执行失败。com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:com.android.dex.DexException:多个dex文件定义Landroid/arch/lifecycle/实时数据$1;
这是我的应用程序级 build.gradle 文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig {
applicationId "com.exploro.socialmediaapp"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
cppFlags "-std=c++11"
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:27.+'
compile 'com.android.support:recyclerview-v7:27.+'
compile 'com.android.support:design:27.+' …Run Code Online (Sandbox Code Playgroud) 当我尝试从 Apple 构建 BreakfastFinder 示例代码时,它会为模拟器构建它,但不会为我的 iPhone X 使用 IOS 13(Public Beta 3)构建它。
我尝试取消配对并修复设备,将标识符从 切换
"com.example.apple-samplecode.BreakfastFinder"到com.<myID>.TestApp2
从这里下载项目示例:https : //developer.apple.com/documentation/vision/recognizing_objects_in_live_capture
只有在崩溃后我才更改了构建标识符。
我希望构建完成并运行,但它给了我这些错误。来自 Xcode 的两个错误:
- 未能注册捆绑标识符。应用标识符“com.example.apple-samplecode.BreakfastFinder”无法注册到您的开发团队。将您的捆绑标识符更改为唯一字符串以重试。
- 未找到“com.example.apple-samplecode.BreakfastFinder”的配置文件:Xcode 找不到任何与“com.example.apple-samplecode.BreakfastFinder”匹配的 iOS 应用开发配置文件。
我正在尝试在我的 aws linux 服务器上构建 redis,以便访问 redis-cli 并连接到我的 redis 实例,该实例也在 aws 中成功运行。
我的 gcc 是:
gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)
Run Code Online (Sandbox Code Playgroud)
我下载了源代码并开始构建:
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make distclean
make
Run Code Online (Sandbox Code Playgroud)
它构建了依赖项,然后给了我这个:
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/tsd.o src/tsd.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/witness.o src/witness.c
ar crus lib/libjemalloc.a src/jemalloc.o src/arena.o src/background_thread.o src/base.o src/bin.o src/bitmap.o src/ckh.o src/ctl.o src/div.o src/extent.o src/extent_dss.o src/extent_mmap.o src/hash.o …Run Code Online (Sandbox Code Playgroud) 请原谅看到此内容的人——我是一名新开发人员,无法理解我在这里缺少的内容。当我为 iPhone 构建包含 AdMob 广告的 Xcode 工作区时,出现以下错误:
沙箱:rsync(1900)拒绝(1)文件读取数据/Users/philiplattanzio/Library/Developer/Xcode/DerivedData/TigerRun-gexhklhksmplmfagqcwbsfjmflme/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/GoogleUserMessagingPlatform/UserMessagingPlatform.framework/Headers
我相信我已经安装了适当的框架。我不知道如何解决这个问题。
我重新安装了 pods 和 google swift 包管理器。我更新了 AdMob 上的隐私政策(不确定这是否有影响)