Open Closed

release project via cli donnet command problem #7630


User avatar
0
jalalonagh created
  • ABP Framework version: v8.2.0
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

We have commercial version of your framework and we have a problem when creating the release version.

When I take the release version by Visual Studio, it is created completely and we don't have any problems in the execution, but when I create the release version with the .net command, some folders are not created. Below are the names of the folders. I write .

modules views pages

thats my cli dotnet command is : dotnet publish src\sps_portal.HttpApi.Host\sps_portal.HttpApi.Host.csproj -c Release -o publish


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please share the content of src\sps_portal.HttpApi.Host\sps_portal.HttpApi.Host.csproj file.

    Thanks

  • User Avatar
    0
    jalalonagh created
    <Project Sdk="Microsoft.NET.Sdk.Web">
    
    	<Import Project="..\..\common.props" />
    
    	<PropertyGroup>
    		<TargetFramework>net8.0</TargetFramework>
    		<Nullable>enable</Nullable>
    		<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
    		<RootNamespace>sps_portal</RootNamespace>
    		<PreserveCompilationReferences>true</PreserveCompilationReferences>
    		<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
    	</PropertyGroup>
    
    	<PropertyGroup Condition=" '$(RunConfiguration)' == 'sps_portal.HttpApi.Host' " />
    	<ItemGroup>
    		<PackageReference Include="AspNetCore.HealthChecks.Elasticsearch" Version="8.0.1" />
    		<PackageReference Include="AspNetCore.HealthChecks.UI" Version="8.0.1" />
    		<PackageReference Include="AspNetCore.HealthChecks.UI.Client" Version="8.0.1" />
    		<PackageReference Include="AspNetCore.HealthChecks.UI.InMemory.Storage" Version="8.0.1" />
    		<PackageReference Include="DistributedLock.Redis" Version="1.0.3" />
    		<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="8.0.5" />
    		<PackageReference Include="Serilog.AspNetCore" Version="8.0.1" />
    		<PackageReference Include="Serilog.Sinks.Async" Version="1.5.0" />
    		<PackageReference Include="Microsoft.AspNetCore.Authentication.Google" Version="8.0.5" />
    		<PackageReference Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="8.0.5" />
    		<PackageReference Include="Microsoft.AspNetCore.Authentication.Twitter" Version="8.0.5" />
    		<PackageReference Include="Serilog.Sinks.Elasticsearch" Version="10.0.0" />
    		<PackageReference Include="Volo.Abp.AspNetCore.MultiTenancy" Version="8.1.3" />
    		<PackageReference Include="Volo.Abp.Autofac" Version="8.1.3" />
    		<PackageReference Include="Volo.Abp.BlobStoring.FileSystem" Version="8.1.3" />
    		<PackageReference Include="Volo.Abp.DistributedLocking" Version="8.1.3" />
    		<PackageReference Include="Volo.Abp.Swashbuckle" Version="8.1.3" />
    		<ProjectReference Include="..\..\modules\Volo.Abp.AspNetCore.Serilog\Volo.Abp.AspNetCore.Serilog.csproj" />
    		<PackageReference Include="Volo.Abp.Caching.StackExchangeRedis" Version="8.1.3" />
    		<ProjectReference Include="..\..\modules\Volo.Account.Pro\src\Volo.Abp.Account.Pro.Public.Web.OpenIddict\Volo.Abp.Account.Pro.Public.Web.OpenIddict.csproj" />
    		<ProjectReference Include="..\..\modules\Volo.Account.Pro\src\Volo.Abp.Account.Pro.Public.Web.Impersonation\Volo.Abp.Account.Pro.Public.Web.Impersonation.csproj" />
    	</ItemGroup>
    
    	<ItemGroup>
    		<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" Version="3.1.3" />
    	</ItemGroup>
    
    	<ItemGroup>
    		<ProjectReference Include="..\sps_portal.Application\sps_portal.Application.csproj" />
    		<ProjectReference Include="..\sps_portal.EntityFrameworkCore\sps_portal.EntityFrameworkCore.csproj" />
    		<ProjectReference Include="..\sps_portal.HttpApi\sps_portal.HttpApi.csproj" />
    	</ItemGroup>
    
    	<ItemGroup>
    		<Compile Remove="Logs\**" />
    		<Content Remove="Logs\**" />
    		<EmbeddedResource Remove="Logs\**" />
    		<None Remove="Logs\**" />
    	</ItemGroup>
    
    	<ItemGroup>
    		<None Update="sps_portal.xml">
    			<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    		</None>
    		<None Update="tempkey.jwk">
    			<CopyToOutputDirectory>Always</CopyToOutputDirectory>
    		</None>
    	</ItemGroup>
    
    </Project>
    
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Are these folders empty?

    Or what files exist in it?

    modules
    views
    pages
    
  • User Avatar
    0
    jalalonagh created

    hi

    modules folder contains Account folder and Account folder contains some sub folders and cshtml files views folder has cshtml files like viewimportant and viewstart and one folder named verify pages folder has account folder in sub and account folder contains more than 29 cshtml file and folders

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Can you share a simple project?

    I will test it in my local.

    Thanks.

    liming.ma@volosoft.com

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35