- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试构建我的 .Net Core 解决方案,但收到了我无法弄清楚的错误消息;
2017-05-22T14:30:56.2490242Z _TransformWebConfig:
2017-05-22T14:30:56.2490242Z No web.config found. Creating 'd:\a\1\s\SIR\obj\Release\net452\win7-x86\PubTmp\Out\web.config'
2017-05-22T14:30:56.2830092Z ##[error]C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\PublishTargets\Microsoft.NET.Sdk.Publish.MSDeployPackage.targets(124,7): Error MSB4184: The expression "[System.IO.Path]::GetDirectoryName('')" cannot be evaluated. The path is not of a legal form.
2017-05-22T14:30:56.2830092Z ##[debug]Processed: ##vso[task.logissue type=Error;sourcepath=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\PublishTargets\Microsoft.NET.Sdk.Publish.MSDeployPackage.targets;linenumber=124;columnnumber=7;code=MSB4184;]The expression "[System.IO.Path]::GetDirectoryName('')" cannot be evaluated. The path is not of a legal form.
2017-05-22T14:30:56.2830092Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\PublishTargets\Microsoft.NET.Sdk.Publish.MSDeployPackage.targets(124,7): error MSB4184: The expression "[System.IO.Path]::GetDirectoryName('')" cannot be evaluated. The path is not of a legal form. [d:\a\1\s\SIR\Properties.API.csproj]
2017-05-22T14:30:56.2830092Z ##[debug]Processed: ##vso[task.logdetail id=43c372fe-1339-4917-bfb2-2d3438740b01;parentid=e8365874-6f54-4a8c-a31f-62c69bcfdb57;type=Build;result=Failed;finishtime=2017-05-22T14:30:56.2790105Z;progress=100;state=Completed;parentid=e8365874-6f54-4a8c-a31f-62c69bcfdb57;name=;]
2017-05-22T14:30:56.2830092Z Done Building Project "d:\a\1\s\SIR\Properties.API.csproj" (default targets) -- FAILED.
最佳答案
请参阅以下步骤:
**\*.sln
;MSBuild 参数:/t:[projects] /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\App1"
)。 注:projects是该方案中的通用.net框架项目,如/t:project1;project2 publish
;取消选中 发布 Web 项目选项 ;项目:$(build.sourcesdirectory)/*Core*.csproj
(0x1045 到 679191914 个项目)0x1045 到 679104040679191919 项目名称:04040679191940404000关于visual-studio-2017 - VSTS 构建失败;错误 MSB4184 : The expression "[System.IO.Path]::GetDirectoryName(' ')"cannot be evaluated. 路径不合法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44116769/
当我使用OpenFileDialog 打开文件时,当然我需要获取文件目录 及其名称 来加载文件。(加载 xml,访问我需要完整路径的文件。) opd 是 OpenFileDialog
我正在尝试执行一个工具exe,它与主exe位于同一目录中。为此,我尝试首先使用 Assembly.GetExecutingAssembly 获取进程的 exe 名称,然后使用 IO.Path.GetD
我正在尝试执行与主 exe 位于同一目录中的工具 exe。为此,我尝试首先使用 Assembly.GetExecutingAssembly 获取进程的 exe 名称,然后使用 IO.Path.GetD
我在 .Net Core 2 中有一个测试用例,我在其中向 Path.GetDirectoryName 提供以下输入。 @"C:" + Path.DirectorySeparatorChar 当我在测
Path.GetDirectoryName(@"C:\\"); 返回 null 和 Path.GetDirectoryName(@"C:\\Foo"); 返回 C:\ 虽然这正是 documentat
public static void Main() { // testing file name var fileName = "\\\\server7\\EmailA
我发现在下面的代码中使用 Path.GetFileName() 可以按照我的意图工作,并为我提供正确文件夹的名称,但是如果我使用 Path.GetDirectoryName() 它返回父 (UserG
string path = Path.GetDirectoryName( Assembly.GetAssembly(typeof(MyClass)).Code
我想使用斜杠而不是反斜杠,因为我的应用程序与 ftp 通信,不允许将反斜杠作为目录分隔符。 有没有自己写方法的捷径/配置? 最佳答案 窃取@Tejs 评论作为答案。 由于 GetDirectoryNa
我正在尝试构建我的 .Net Core 解决方案,但收到了我无法弄清楚的错误消息; 2017-05-22T14:30:56.2490242Z _TransformWebConfig: 2017-05-
我是一名优秀的程序员,十分优秀!