Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/21.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/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
.net 警告:在.vscode/launch.json中,LF将被CRLF替换_.net_Visual Studio Code_Configuration - Fatal编程技术网

.net 警告:在.vscode/launch.json中,LF将被CRLF替换

.net 警告:在.vscode/launch.json中,LF将被CRLF替换,.net,visual-studio-code,configuration,.net,Visual Studio Code,Configuration,我有一个带有reactjs的.net核心应用程序。我正在使用VisualStudio代码,我想做一个git推送 但我得到了这个警告: > git add -A -- . warning: LF will be replaced by CRLF in .vscode/launch.json. The file will have its original line endings in your working directory warning: LF will be replaced b

我有一个带有reactjs的.net核心应用程序。我正在使用VisualStudio代码,我想做一个git推送

但我得到了这个警告:

> git add -A -- .
warning: LF will be replaced by CRLF in .vscode/launch.json.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in ReactActivities/.gitignore.
The file will have its original line endings in your working directory
error: 'ReactActivities/API/' does not have a commit checked out
fatal: adding files failed
这是我的launch.json文件:

"version": "0.2.0",
    "configurations": [        
        {
            // Use IntelliSense to find out which attributes exist for C# debugging
            // Use hover for the description of the existing attributes
            // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
            "name": ".NET Core Launch (web)",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            // If you have changed target frameworks, make sure to update the program path.
            "program": "${workspaceFolder}/ReactActivities/API/bin/Debug/net5.0/API.dll",
            "args": [],
            "cwd": "${workspaceFolder}/ReactActivities/API",
            "stopAtEntry": false,
            // Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
            "serverReadyAction": {
                "action": "openExternally",
                "pattern": "\\bNow listening on:\\s+(https?://\\S+)"
            },
            "env": {
                "ASPNETCORE_ENVIRONMENT": "Development"
            },
            "sourceFileMap": {
                "/Views": "${workspaceFolder}/Views"
            }
        },
        {
            "name": ".NET Core Attach",
            "type": "coreclr",
            "request": "attach",
            "processId": "${command:pickProcess}"
        }
    ]
}
所以我现在不能承诺。如何消除这个错误


谢谢

我想您刚刚创建了一个空存储库,所以您需要做的是在存储库中创建一个初始提交

您的错误不是“LF将被CRLF替换”

您的错误是“'ReactActivities/API/”未签出提交”


看看这个

啊,是的,就是这样。非常感谢。