src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Debug/ErrorProfileDebugTargetsProvider.cs
/// <summary>
/// When F5\Ctrl-F5 is invoked on a NoAction profile and error is thrown to the user. Typical case is trying to run a 
/// class library project
/// </summary>
When F5\Ctrl-F5 is invoked on a NoAction profile and error is thrown to the user. Typical case is trying to run a
class library project
When F5 \ Ctrl - F5 is invoked on a NoAction profile and error is thrown to the user . Typical case is trying to run a class library project
public Task<IReadOnlyList<IDebugLaunchSettings>> QueryDebugTargetsAsync(DebugLaunchOptions launchOptions, ILaunchProfile activeProfile)
        {
            if (activeProfile.OtherSettings.TryGetValue("ErrorString", out object oErrorString) && oErrorString is string)
            {
                throw new Exception(string.Format(VSResources.ErrorInProfilesFile2, Path.GetFileNameWithoutExtension(_configuredProject.UnconfiguredProject.FullPath), (string)oErrorString));
            }
            throw new Exception(string.Format(VSResources.ErrorInProfilesFile, Path.GetFileNameWithoutExtension(_configuredProject.UnconfiguredProject.FullPath)));
        }
public Task < IReadOnlyList < IDebugLaunchSettings > > QueryDebugTargetsAsync ( DebugLaunchOptions launchOptions , ILaunchProfile activeProfile ) { if ( activeProfile . OtherSettings . TryGetValue ( " " , out object oErrorString ) && oErrorString is string ) { throw new Exception ( string . Format ( VSResources . ErrorInProfilesFile2 , Path . GetFileNameWithoutExtension ( _configuredProject . UnconfiguredProject . FullPath ) , ( string ) oErrorString ) ) ; } throw new Exception ( string . Format ( VSResources . ErrorInProfilesFile , Path . GetFileNameWithoutExtension ( _configuredProject . UnconfiguredProject . FullPath ) ) ) ; }
When F5\Ctrl-F5 is invoked on a NoAction profile and error is thrown to the user.
When F5 \ Ctrl - F5 is invoked on a NoAction profile and error is thrown to the user .
launchOptions
DebugLaunchOptions
activeProfile
ILaunchProfile