Open Bartleby2718 opened 4 months ago
Some things I've done after posting:
dotnet nuget add source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json --name dotnet-eng
Microsoft.DotNet.Arcade.Sdk
to a version in https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet-eng/NuGet/Microsoft.DotNet.Arcade.Sdk/overview/<FlagNetStandard1XDependencies>false</FlagNetStandard1XDependencies>
to Directory.Build.props
to work around a build failureUse previews of the .NET Core SDK
in VSAt this point I think I was able to run tests, although one of them was failing.
@sharwell @arkalyanms @JoeRobich?
@sharwell would you advise @Bartleby2718 on issue priority for contributions.
@Bartleby2718 main is the branch to target, but @Cosifne is moving this repo into the SDK repo as a part of https://github.com/dotnet/sdk/pull/38857. So we are holding off on merging fixes until that PR lands.
@Bartleby2718 you shouldn't need to make any changes to the repository in order to build it. You will need to manually install the version of the .NET SDK listed in global.json for the commit you check out locally: https://github.com/dotnet/format/blob/91f60316ebd9c75d6be8b7f9b7c201bab17240c9/global.json#L3
If you cannot install that version, the repository should still build from the command line. It may not be possible to use the solution inside Visual Studio prior to https://github.com/dotnet/designs/pull/303 being approved, implemented, and delivered.
.\Restore.cmd
.\Build.cmd
.\Test.cmd
You will need to manually install the version of the .NET SDK listed in global.json for the commit you check out locally:
@sharwell this is not true.
This repo is using the Arcade SDK, with that restore.cmd
is downloading the required version of the SDK.
It may not be possible to use the solution inside Visual Studio prior to dotnet/designs#303 being approved, implemented, and delivered.
This is not entirely correct either. You will need to add helper scripts (like many other dotnet repos have done) to launch both VS and VS Code with the repo's SDK. E.g.:
I just encountered the same bug as in #2125. Given that VS is able to fix it, I don't think it's a Roslyn issue. I'd like to reproduce this by adding a test to this solution and hopefully fix it, but I'm having trouble setting this repo up locally.
The first thing I had to fix after cloning the repo locally was updating
global.json
to match my local .NET SDK version. The second thing was not being able to findMicrosoft.DotNet.Arcade.Sdk
, which I think will be fixed by following https://stackoverflow.com/a/65337211. Apparently I haven't spent too much time on this yet, but these issues make me wonder if there's any documentation on local dev setup.Hence my questions:
main
or some other release branch?Thanks in advance!