WeihanLi/WeihanLi.EntityFramework

nuget package restore repeatedly

Closed this issue ยท 6 comments

ylka commented

after open the project, the nuget restore repeatedly.

WeChat Photo Editor_20200622174728

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.94. Please mark this comment with ๐Ÿ‘ or ๐Ÿ‘Ž to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

seemed to be some bug with vs(package manager)

recommend to use dotnet restore or dotnet build to restore the dependencies

you can also run the build script on the project root dir (build.ps1 for windows and build.sh for linux or mac)

ylka commented

๐Ÿ˜ฅ
the bug is annoying, thanks!

uncheck the features below, restore packages manually may help

image

ylka commented

1 I rename the Directory.Build.props in root directory, stop restore;
2 modify Directory.Build.props, when comment <Import Project="./build/version.props" />, stop restore;
3 the key is

<VersionSuffix Condition="'$(Configuration)'=='DEBUG'">preview-$([System.DateTime]::Now.ToString("yyyyMMdd-HHmmss"))</VersionSuffix>

if set ss, it restore every second.

Thanks for report that and your solution, the version.props had been updated