mirror of
				https://github.com/actions/setup-dotnet.git
				synced 2025-11-04 07:33:45 +00:00 
			
		
		
		
	DOTNET_ROOT should point at root, not versioned folder
This commit is contained in:
		
							parent
							
								
									1516208c2e
								
							
						
					
					
						commit
						ff36c3f748
					
				@ -73,7 +73,7 @@ class DotnetCoreInstaller {
 | 
				
			|||||||
                console.log('Using cached tool');
 | 
					                console.log('Using cached tool');
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            // Need to set this so that .NET Core global tools find the right locations.
 | 
					            // Need to set this so that .NET Core global tools find the right locations.
 | 
				
			||||||
            core.exportVariable('DOTNET_ROOT', toolPath);
 | 
					            core.exportVariable('DOTNET_ROOT', path.join(toolPath, '../..'));
 | 
				
			||||||
            // Prepend the tools path. instructs the agent to prepend for future tasks
 | 
					            // Prepend the tools path. instructs the agent to prepend for future tasks
 | 
				
			||||||
            core.addPath(toolPath);
 | 
					            core.addPath(toolPath);
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
				
			|||||||
@ -59,7 +59,7 @@ export class DotnetCoreInstaller {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Need to set this so that .NET Core global tools find the right locations.
 | 
					    // Need to set this so that .NET Core global tools find the right locations.
 | 
				
			||||||
    core.exportVariable('DOTNET_ROOT', toolPath);
 | 
					    core.exportVariable('DOTNET_ROOT', path.join(toolPath, '../..'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Prepend the tools path. instructs the agent to prepend for future tasks
 | 
					    // Prepend the tools path. instructs the agent to prepend for future tasks
 | 
				
			||||||
    core.addPath(toolPath);
 | 
					    core.addPath(toolPath);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user