detect Visual Basic projects
@@ -21,11 +21,11 @@ module AspNetCoreBuildpack
dirs_to_check = Dir.glob(File.join(dir, '**', 'project.json')).map { |file| File.dirname(file) }
- proj_files_regex = /.+\.(?:csproj|fsproj)/
+ proj_files_regex = /.+\.(?:csproj|fsproj|vbproj)/
dirs_to_check += Dir.glob(File.join(dir, '**', '*.??proj')).grep(proj_files_regex).map { |file| File.dirname(file) }
dirs_to_check.each do |directory|
- fromsource = Dir.glob(File.join(directory, '**', '*.??')).grep(/.+\.(?:cs|fs)/).any?
+ fromsource = Dir.glob(File.join(directory, '**', '*.??')).grep(/.+\.(?:cs|fs|vb)/).any?
break if fromsource
end
frompublish = Dir.glob(File.join(dir, '*.runtimeconfig.json')).any?
