question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debian vs. Windows data incompatibility

See original GitHub issue

Steps 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:closed
  • Created 7 years ago
  • Comments:24 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
DustinCampbellcommented, Dec 14, 2016

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.

2reactions
dasMullicommented, Dec 12, 2016

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:

{
    "sdk": {
        "version": "1.0.0-preview2-1-003177"
    }
}
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found