Fix copia de cshtml templates.
All checks were successful
Build and Deploy / remote-build-and-deploy (push) Successful in 25m12s

This commit is contained in:
2025-06-19 15:35:38 -03:00
parent 975a1e6d26
commit 4b94377827
2 changed files with 5 additions and 7 deletions

View File

@@ -123,11 +123,11 @@ namespace GestionIntegral.Api.Controllers
string nombrePlantaParam = "Consolidado"; string nombrePlantaParam = "Consolidado";
if (consolidado) if (consolidado)
{ {
templatePath = Path.Combine("Controllers", "Reportes", "Templates", "ReporteExistenciaPapelConsolidado.cshtml"); templatePath = "Controllers/Reportes/Templates/ReporteExistenciaPapelConsolidado.cshtml";
} }
else else
{ {
templatePath = Path.Combine("Controllers", "Reportes", "Templates", "ReporteExistenciaPapel.cshtml"); templatePath = "Controllers/Reportes/Templates/ReporteExistenciaPapel.cshtml";
if (idPlanta.HasValue) if (idPlanta.HasValue)
{ {
var planta = await _plantaRepository.GetByIdAsync(idPlanta.Value); var planta = await _plantaRepository.GetByIdAsync(idPlanta.Value);

View File

@@ -5,6 +5,7 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<PreserveCompilationContext>true</PreserveCompilationContext> <PreserveCompilationContext>true</PreserveCompilationContext>
<EnableDefaultContentItems>false</EnableDefaultContentItems>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
@@ -22,11 +23,8 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<!-- Esto le dice a MSBuild que busque todos los archivos .rdlc --> <Content Include="Controllers\Reportes\Templates\**\*.cshtml">
<Content Include="Controllers\Reportes\RDLC\**\*.rdlc">
<!-- Esto asegura que los archivos se copien a la carpeta de publicación -->
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content> </Content>
</ItemGroup> </ItemGroup>
</Project> </Project>