Debian vs. Windows data incompatibility
See original GitHub issueSteps to reproduce
$ dotnet restore
Project file does not exist.
$ dotnet restore project.json
/path/to/project.json(1,1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.
Generic not-touched package.json
from the command to create a new empty site that runs fine on Windows.
Expected behavior
Project should run restore cleanly without issue, as it does on Windows.
Actual behavior
Errors!
Environment data
dotnet --info
output:
Product Information:
Version: 1.0.0-preview5-004232
Commit SHA-1 hash: 355b6233cb
Runtime Environment:
OS Name: debian
OS Version:
OS Platform: Linux
RID: debian.8-x64
Base Path: /bin/sdk/1.0.0-preview5-004232
Running headless Debian stretch/sid
.
Fair note
I had a bit of trouble installing the .NET CLI SDK, and may have mucked something up there? Instructions for installing on Debian (literally one of the most popular server platforms out there) are next to nonexistent.
Issue Analytics
- State:
- Created 7 years ago
- Comments:24 (16 by maintainers)
Top Results From Across the Web
What makes a Linux software incompatible with Windows ...
Windows doesn't really have a neat way to manage packages. What is incompatible is the APIs, or how the software talks to the...
Read more >Linux vs Windows vs MacOS for statistician work laptop
Hi all, I have debated whether it is best to post this on a CS, statistics, data science or Linux subreddit but I...
Read more >Incompatibility between Windows + Linux Versions?
I have bought a used Portege X30 and run into install toubles with av-linux - described here: ...
Read more >Windows / Linux Incompatibility
Files written in Windows (based on the DOS operating system) and files written in Mac/Linux (based on the UNIX operating system) use different...
Read more >Linux vs Windows Difference: Which Is The Best Operating ...
Linux is compatible with a broader range of free software than Windows. Support, Both Linux and Windows offer extensive support. Windows 10 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s right. In general, so long as MSBuild is backward-compatible with updates (like it is for Sdk attributes vs. Sdk package references), VS Code will continue to work. It’s usually just a matter of tasks and targets after all. 😄
We’re leaving the preview2 support in place for the foreseeable future to allow users to transition. It’s not a nice experience when an update to an extension in VS Code breaks on the project you’ve been working on.
The preview 3-5 versions are msbuild based and use csproj instead of project.json. And they default to .net core 1.0.. You probably have a preview2-1- version installed on windows (e.g. through vs2015 + tooling) and a bleeding edge CI build on your Debian machine (vs 2017 rc shipped with a preview3, no “official” preview5 build has been published yet).
You can however install multiple versions of the CLI side-by-side. You can download the latest project-json based SDK from http://dot.net and create a
global.json
file in your project’s root folder to fix the version used: