[英]ExcelDna NuGet, "ExcelDna.AddIn.Targets" file building through msbuild returns error
我在我的 Visual Studios 中使用 ExcelDna-AddIn NuGet 包,当我尝试通过 Visual Studios 构建我的类库项目时,它工作正常,而如果我尝试通过 msbuild(ExcelDna.AddIn.targets) 构建它,我会得到 '" CleanExcelAddIn”任务未指定所需参数“OutDirectory”的值,代码为 1'
I had created a new class library, still got the same error.
我创建了一个新的类库,仍然出现相同的错误。 Though, now I gave 'msbuild "project_name.targets" /p:configuration=release /p:OutDir=bin\\' and got a successful build.
不过,现在我给了 'msbuild "project_name.targets" /p:configuration=release /p:OutDir=bin\\' 并成功构建。
Based on your comment, it seems you're running MSBuild on a custom .targets file, and not a standard .csproj created by Visual Studio.根据您的评论,您似乎在自定义 .targets 文件上运行 MSBuild,而不是 Visual Studio 创建的标准 .csproj。
OutDir
is a property created by Microsoft.Common.CurrentVersion.targets
which I'm guessing you're not including in your custom MSBuild file. OutDir
是由Microsoft.Common.CurrentVersion.targets
创建的属性,我猜您没有包含在您的自定义 MSBuild 文件中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.