Browse Source

fix(Abp.Cli): No need to double check sdk in `bundle` command

pull/10569/head
Berkan Sasmaz 5 years ago
parent
commit
1bc2d0d5a6
  1. 7
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs

7
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs

@ -284,7 +284,6 @@ namespace Volo.Abp.Cli.Bundling
{
var document = new XmlDocument();
document.Load(projectFilePath);
CheckProjectIsSupportedType(document);
return document.SelectSingleNode("//TargetFramework").InnerText;
}
@ -293,11 +292,7 @@ namespace Volo.Abp.Cli.Bundling
{
var document = new XmlDocument();
document.Load(projectFilePath);
CheckProjectIsSupportedType(document);
}
private void CheckProjectIsSupportedType(XmlDocument document)
{
var sdk = document.DocumentElement.GetAttribute("Sdk");
if (sdk != BundlingConsts.SupportedWebAssemblyProjectType)
{

Loading…
Cancel
Save