在dotnet桌面应用程序中devops管道构建错误 [英] devops pipeline build error in dotnet desktop application

查看:91
本文介绍了在dotnet桌面应用程序中devops管道构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是大卫! 

实际上我不是程序员。

我只是为小型制造商工作,我喜欢用C#编程,只是初学者。

最近我正在开发PDF文档文件视图应用程序。

我正在使用Com Componet Adob​​e PDF Reader。

它运行良好在visual studio 2017社区中没有问题。

但是当我在DevOPs PipeLine中使用时,在Build Solution中的Error消息下面。

我挣扎了将近2周请帮助。

Hi I am David! 
actually I am not a programmer.
I just work for small manufacturer and I like programming with C#, just beginner.
recently I am developing our PDF Document file view application.
I am using Com Componet Adobe PDF Reader.
it is working well and no problem building in visual studio 2017 community.
But when I using in DevOPs PipeLine, below Error message in Build Solution.
I struggling with it almost 2 weeks Please Help.

1。 Waring Message

## [警告] C:\Program Files(x86)\ Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common。 CurrentVersion.targets(2729,5):警告MSB3284:无法获取类型库"05bfd3f1-6319-4f30-b752-c7a22889bcc4"的文件路径版本1.0。
图书馆未注册。 (HRESULT异常:0x8002801D(TYPE_E_LIBNOTREGISTERED))



2.错误消息

## [错误] WindowsFormsApp1 \Form1.Designer。 cs(60,17):错误CS0246:找不到类型或命名空间名称'AxAcroPDFLib'(您是否缺少using指令或程序集引用?)

Form1.Designer.cs(60 ,17):错误CS0246:找不到类型或命名空间名称'AxAcroPDFLib'(您是否缺少using指令或程序集引用?)[D:\\\\\\\ WindowsFormsApp1 \WindowsFormsApp1 .csproj]
$


我在互联网上发现了类似的错误,我试过但我不能。

我想使用DevOps。

再见

1. Waring Message
##[warning]C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): Warning MSB3284: Cannot get the file path for type library "05bfd3f1-6319-4f30-b752-c7a22889bcc4" version 1.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))

2. Error Message
##[error]WindowsFormsApp1\Form1.Designer.cs(60,17): Error CS0246: The type or namespace name 'AxAcroPDFLib' could not be found (are you missing a using directive or an assembly reference?)
Form1.Designer.cs(60,17): error CS0246: The type or namespace name 'AxAcroPDFLib' could not be found (are you missing a using directive or an assembly reference?) [D:\a\1\s\WindowsFormsApp1\WindowsFormsApp1.csproj]

I found similar error in internet and I tried but I can't.
I want to using DevOps.
Bye

推荐答案

嗨朋友,

感谢您在这里发帖。

这个论坛是关于MS IDE与VS IDE(讨论Microsoft构建引擎又名MSBuild。主题包括:使用MSBuild,构建自定义和MSBuild exte通过任务,记录器和托管的灵活性。)。 

This forum is about the MSBuild with VS IDE(Discuss the Microsoft build engine aka MSBuild. Topics including: usage of MSBuild, build customization, and MSBuild extensibility via tasks, loggers and hosting.). 

由于您的问题与DevOps更相关,我建议您可以在
DeveloperCommunity (这个问题有一个Devops论坛)。该论坛上的更多社区成员可以进一步查看您的问题并提供更多建议。

As your issue is more related to the DevOps, I suggest that you could open an new thread on the DeveloperCommunity(There has a Devops Forum for this issue). More community members on that forum may further look at your issue and provide more suggestions.

如果您有一些MSBuild问题,请随时与我们联系。我们将尽力为您提供解决方案。

If you have some MSBuild questions, please feel free to contact us. We will try our best to give you a solution.

感谢您的理解与合作。 

Thanks for your understanding and cooperation. 

最好的问候

Lance


这篇关于在dotnet桌面应用程序中devops管道构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆