Set infrastructure assembly marker.

This commit is contained in:
ngfrolov 2022-04-19 13:35:20 +05:00
parent 9023aef984
commit 92371eaaf5
2 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,8 @@
namespace AsbCloudInfrastructure
{
/// <summary>
/// Тип для поиска этой сборки
/// </summary>
public interface IInfrastructureMarker
{}
}

View File

@ -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;
}
}