but when i perform "dotnet restore -v d" i get the following error:
Build started 10/23/2017 19:57:01.
1>Project "someproj.csproj" on node 1 (Restore target(s)).
1>Building with tools version "15.0".
1>someproj.csproj(1,1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.
1>Done Building Project "someproj.csproj" (Restore target(s)) -- FAILED.
Build FAILED.
"/someproj/someproj.csproj" (Restore target) (1) ->
/someproj.csproj(1,1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.
0 Warning(s)
1 Error(s)
Here is the output for dotnet --info
.NET Command Line Tools (2.0.0)
Product Information:
Version: 2.0.0
Commit SHA-1 hash: cdcd1928c9
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/2.0.0/
Microsoft .NET Core Shared Framework Host
Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d
Turned out there were some special characters in the file which are not visible in VSCode. When i opened the file on Vim, it showed some unwanted characters....deleting those fixed the issue
I migrated my .netcore 1.1 proj to 2.0 using this link https://docs.microsoft.com/en-us/aspnet/core/migration/1x-to-2x/
but when i perform "dotnet restore -v d" i get the following error:
Here is the output for dotnet --info
This is my csproj file