|
|
|
@ -131,16 +131,25 @@ public class AbpIoSourceCodeStore : ISourceCodeStore, ITransientDependency |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Logger.LogWarning(currentCliVersion.ToString()); |
|
|
|
if (outputWarning) |
|
|
|
{ |
|
|
|
Logger.LogWarning(userSpecifiedVersion |
|
|
|
? $"The specified template version ({templateVersion}) is different than the CLI version ({currentCliVersion}). This may cause compatibility issues." |
|
|
|
: $"The latest template version ({templateVersion}) is different than the CLI version ({currentCliVersion}). This may cause compatibility issues."); |
|
|
|
Logger.LogWarning("Please upgrade/downgrade the CLI version to the template version."); |
|
|
|
Logger.LogWarning($"> dotnet tool uninstall -g volo.abp.cli"); |
|
|
|
Logger.LogWarning(!templateVersion.IsPrerelease |
|
|
|
? $"> dotnet tool install -g volo.abp.cli --version \"{templateVersion.Major}.{templateVersion.Minor}.*\"" |
|
|
|
: $"> dotnet tool install -g volo.abp.cli --version {templateVersion}"); |
|
|
|
|
|
|
|
if (currentCliVersion.ToString().EndsWith("-studio")) |
|
|
|
{ |
|
|
|
Logger.LogWarning($"> abp install-old-cli --version {templateVersion}"); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
Logger.LogWarning($"> dotnet tool uninstall -g volo.abp.cli"); |
|
|
|
Logger.LogWarning(!templateVersion.IsPrerelease |
|
|
|
? $"> dotnet tool install -g volo.abp.cli --version \"{templateVersion.Major}.{templateVersion.Minor}.*\"" |
|
|
|
: $"> dotnet tool install -g volo.abp.cli --version {templateVersion}"); |
|
|
|
} |
|
|
|
|
|
|
|
if (userSpecifiedVersion) |
|
|
|
{ |
|
|
|
|