Cli: Never convert project reference to NuGet reference if the project exist

pull/14249/head
Yunus Emre Kalkan 3 years ago
parent 8d6aba4234
commit 434c0b07e6

@ -117,12 +117,13 @@ public class ProjectReferenceReplaceStep : ProjectBuildPipelineStep
var oldNodeIncludeValue = oldNode.Attributes["Include"].Value;
// ReSharper disable once PossibleNullReferenceException : Can not be null because nodes are selected with include attribute filter in previous method
if (oldNodeIncludeValue.Contains(_projectName))
{
if (_isMicroserviceServiceTemplate || _entries.Any(e => e.Name.EndsWith(GetProjectNameWithExtensionFromProjectReference(oldNodeIncludeValue))))
if (oldNodeIncludeValue.Contains(_projectName) && _isMicroserviceServiceTemplate)
{
continue;
}
if(_entries.Any(e => e.Name.EndsWith(GetProjectNameWithExtensionFromProjectReference(oldNodeIncludeValue))))
{
continue;
}
XmlNode newNode = GetNewReferenceNode(doc, oldNodeIncludeValue);

Loading…
Cancel
Save