[英]Why are bin and obj folders not getting created when I am building a csproj file on azure devops using pipeline?
我正在使用管道在Azure开发运营上构建C#点网项目。 构建成功运行,但是在构建之后,我需要在工件中查看项目的bin和obj文件夹,在此处需要拾取编译的dll,但是不会创建bin和obj文件夹。 以下是管道yaml代码中的build命令:
- task: VSBuild@1
inputs:
solution: 'C#\Ignify.eComIntegration\EventLogger\EventLogger.csproj'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package
/p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true
/p:PackageLocation="$(build.artifactStagingDirectory)"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
另外,下面给出的是csproj文件中的代码的一部分:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>d:\a\1\s\C#\Ignify.eComIntegration\EventLogger\bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
请建议如何做才能创建文件夹。
您的构建任务只是创建一个要部署在$(build.artifactStagingDirectory)
文件夹中的包。 您需要添加其他构建步骤来复制其他文件: 复制文件任务 。 像这样:
- task: CopyFiles@2 displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)' inputs: Contents: | **\\bin\\** **\\obj\\** TargetFolder: '$(Build.ArtifactStagingDirectory)'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.