diff --git a/AsbCloudInfrastructure/IInfrastructureMarker.cs b/AsbCloudInfrastructure/IInfrastructureMarker.cs new file mode 100644 index 00000000..990c431c --- /dev/null +++ b/AsbCloudInfrastructure/IInfrastructureMarker.cs @@ -0,0 +1,8 @@ +namespace AsbCloudInfrastructure +{ + /// + /// Тип для поиска этой сборки + /// + public interface IInfrastructureMarker + {} +} diff --git a/AsbCloudWebApi/Controllers/DailyReportController.cs b/AsbCloudWebApi/Controllers/DailyReportController.cs index 5f0dcf3d..bfd1714b 100644 --- a/AsbCloudWebApi/Controllers/DailyReportController.cs +++ b/AsbCloudWebApi/Controllers/DailyReportController.cs @@ -108,8 +108,8 @@ namespace AsbCloudWebApi.Controllers private static Stream GetExcelTemplateStream() { - var stream = System.Reflection.Assembly.GetExecutingAssembly() - .GetManifestResourceStream("AsbCloudInfrastructure.Services.WellOperationService.DailyReportTemplate.xlsx"); + var assembly = System.Reflection.Assembly.GetAssembly(typeof(AsbCloudInfrastructure.IInfrastructureMarker)); + var stream = assembly.GetManifestResourceStream("AsbCloudInfrastructure.Services.DailyReport.DailyReportTemplate.xlsx"); return stream; } }