Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/kotlin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux/Ubuntu区分大小写文件系统的MSBuild exist条件_Msbuild_.net Standard 2.0 - Fatal编程技术网

Linux/Ubuntu区分大小写文件系统的MSBuild exist条件

Linux/Ubuntu区分大小写文件系统的MSBuild exist条件,msbuild,.net-standard-2.0,Msbuild,.net Standard 2.0,我们的解决方案有targetframework.netstandard 2.0,可以在Linux\Ubuntu和Windows上运行 我们有一个json文件,它作为MSBuild目标包含在*.targets文件中的ouptut中: <Target Name="test_target" AfterTargets="BeforeBuild" Condition=" Exists('testFile.config.json') "> <ItemGroup>

我们的解决方案有targetframework.netstandard 2.0,可以在Linux\Ubuntu和Windows上运行

我们有一个json文件,它作为MSBuild目标包含在*.targets文件中的ouptut中:

<Target Name="test_target" AfterTargets="BeforeBuild" Condition=" 
 Exists('testFile.config.json') ">
        <ItemGroup>
            <None Include="testFile.config.json">
                <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
            </None>
        </ItemGroup>
 </Target>

保存最新
我们知道,在Linux上,文件系统区分大小写,在Windows上则相反

但我们想要的是使用MSBuild不敏感地搜索testFile.config.json文件大小写