Ejemplo n.º 1
0
 public override Task <string> OnGetEvaluatedPropertyValueAsync(
     string evaluatedPropertyValue,
     IProjectProperties defaultProperties)
 {
     return(_projectLockService.ReadLockAsync(async access =>
     {
         ProjectRootElement projectXml = await access.GetProjectXmlAsync(_unconfiguredProject.FullPath);
         return await _helper.GetPropertyAsync(projectXml, defaultProperties);
     }));
 }
Ejemplo n.º 2
0
        public override async Task <string> OnGetEvaluatedPropertyValueAsync(
            string evaluatedPropertyValue,
            IProjectProperties defaultProperties)
        {
            using (var access = await _projectLockService.ReadLockAsync())
            {
                var projectXml = await access.GetProjectXmlAsync(_unconfiguredProject.FullPath).ConfigureAwait(true);

                return(await _helper.GetPropertyAsync(projectXml, defaultProperties).ConfigureAwait(true));
            }
        }
Ejemplo n.º 3
0
        public override async Task <string> OnGetEvaluatedPropertyValueAsync(
            string evaluatedPropertyValue,
            IProjectProperties defaultProperties)
        {
            using (ProjectLockReleaser access = await _projectLockService.ReadLockAsync())
            {
                Microsoft.Build.Construction.ProjectRootElement projectXml = await access.GetProjectXmlAsync(_unconfiguredProject.FullPath);

                return(await _helper.GetPropertyAsync(projectXml, defaultProperties));
            }
        }
        public override Task <string> OnGetEvaluatedPropertyValueAsync(
            string evaluatedPropertyValue,
            IProjectProperties defaultProperties)
        {
#pragma warning disable RS0030 // symbol IProjectLockService is banned
            return(_projectLockService.ReadLockAsync(async access =>
            {
                ProjectRootElement projectXml = await access.GetProjectXmlAsync(_unconfiguredProject.FullPath);
                return await _helper.GetPropertyAsync(projectXml, defaultProperties);
            }));

#pragma warning restore RS0030 // symbol IProjectLockService is banned
        }