Coder Social home page Coder Social logo

Comments (2)

realLiangshiwei avatar realLiangshiwei commented on July 3, 2024

My abp project is not a standard abp-cli-created project, but rather a self-built project based on abp modular conventions, which depends on some official abp modules and has gone through upgrades from abp 3.0 to 6.0 and then to 8.0

Because your project is not a standard ABP template, you need to check your project

Here is the logic code for finding projects

return Directory.GetFiles(directory, "*.csproj", SearchOption.AllDirectories)
.Union(Directory.GetFiles(directory, "angular.json", SearchOption.AllDirectories))
.Where(file => ExcludeDirectory.All(x => file.IndexOf(x, StringComparison.OrdinalIgnoreCase) == -1))
.Where(file =>
{
if (file.EndsWith(".csproj"))
{
var packageJsonFilePath = Path.Combine(Path.GetDirectoryName(file), "package.json");
if (!File.Exists(packageJsonFilePath))
{
return false;
}
using (var reader = File.OpenText(file))
{
var fileTexts = reader.ReadToEnd();
return fileTexts.Contains("Microsoft.NET.Sdk.Web") ||
fileTexts.Contains("Microsoft.NET.Sdk.Razor") ||
fileTexts.Contains("Microsoft.NET.Sdk.BlazorWebAssembly");
}
}
return true;

from abp.

Huangzc88 avatar Huangzc88 commented on July 3, 2024

Hi realLiangshiwei,

Thanks for the answer, after I debugged the code, I found that it was this code that filtered the problem
image
image

and when I removed the .git from the ExcludeDirectory collection, I was able to find the project.

I know what the problem is, my web project path goes like this:

image

This path just includes the . Git, so no project files are found,I think excluding the .git handling code can be optimized to prevent exceptions because the directory contains .git

image

from abp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.