-
Notifications
You must be signed in to change notification settings - Fork 508
Removed Sdk.props and Sdk.targets imports #2618
Conversation
These seem not to be needed any more; they cause a warning to be printed out on build: ``` /Volumes/extra/git/perlun/zup/zup.csproj(2,3): warning MSB4011: "/usr/local/share/dotnet/sdk/1.0.0-preview4-004233/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.props" cannot be imported again. It was already imported at "/Volumes/extra/git/perlun/zup/zup.csproj". This is most likely a build authoring error. This subsequent import will be ignored. /Volumes/extra/git/perlun/zup/zup.csproj : warning MSB4011: "/usr/local/share/dotnet/sdk/1.0.0-preview4-004233/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.targets" cannot be imported again. It was already imported at "/Volumes/extra/git/perlun/zup/zup.csproj (34,3)". This is most likely a build authoring error. This subsequent import will be ignored. ```
Also made it more explicit what part needs to be added.
Hi @perlun, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! TTYL, DNFBOT; |
I have download the latest dotnet cli tools (1.0.0-rc4-004707) and tried your update. I am getting following error on Windows:
I expect that Mac will hit the same problem. This works fine with the latest dotnet cli:
|
Could you please update this PR to be compatible with the latest cli bits? Maybe add a note that the cli are still moving target and the cli tools version that the instructions have been validated on. |
Interesting! The version I tried with was this, on macOS:
I don't even know where to get the rc4, to be honest. The versioning here seems somewhat confused. 😉 |
Installers and Binaries at https://github.com/dotnet/cli/ contains links to the latest bits. I usually download the .zip or .tgz for the latest bits without installing it globally on the machine. Download the |
You're right, it has the rc4 there. Interesting - it's not present on the Releases page and https://www.microsoft.com/net/core gives me preview2 (!) which is rather old now. rc4 seems to have a higher build number (004707) vs preview4 (004233). I'll download rc4 and try with that, thanks. |
Btw @jkotas, do you happen to know why the cli installers include .NET Core 1.0.1 instead of the newer .NET Core 1.1? (They work with targetting .NET Core 1.1 as well, you just have to install that separately; I just wonder whey they ship with an older version of the platform itself). |
I believe that it was fixed by dotnet/cli#5225 |
OK, sounds good! I need to do some more digging on this one, since rc4 broke my Visual Studio Code intellisense (I installed it globally, instead of taking your suggested approach...). So will need to download it and retry. The ball is in my court. |
Thanks for that! Yeah, sorry for not getting back. In general, I feel the current approach with preview2, preview4, rc4 and so forth (sometimes including .NET Core 1.0, other times 1.1 etc...) has been a bit confusing to me. 😉 It's also been weird that some of these versions have been hard to get working with VS Code, dotnet/vscode-csharp#1161. But, I managed to get it working now again by installing both preview2, then preview4 then rc4... 🤣 Anyway, glad to see you're already started work on the .NET Core 2.0 stuff, even before the CLI tools 1.0 is shipping. 😊 Will the CLI version and .NET Core version converge in the 2.0 series? I for one would find that a great improvement, while I also understand the need for sometimes letting them diverge... |
Check the discussion at https://github.com/dotnet/core-setup/issues/1590 |
These seem not to be needed any more; they cause a warning to be printed out on build: