Class 推送解决方案时库未添加到 GitHub 回购

Class Libraries not added to GitHub Repo when pushing Solution

我有一个包含 3 个 Class Libraries 的 Azure 函数,我想将其推送到 GitHub 中的 repository - 我在 GitHub 上创建了一个存储库,然后推送了我的使用 Visual Studio 对此 repository 的代码,但是,它只推送了我的 Azure 函数而不是 Class 库。

当任何人现在克隆此代码时,它会抱怨找不到 Class Libraries!?

我尝试从我的解决方案中删除 link 到 GitHub 以查看我是否做错了什么,但它强制只选择 Azure Function 所在的文件夹而不是主文件夹?

如何将所有内容推送到我的 Repository

it forcefully only selects the folder where the Azure Function is in and not the main folder?

当我们尝试从 visual studio 推送代码时,我们 select “推送到 Git 服务” - 来自解决方案资源管理器,之后 VS 将 自动 select 我们在本地拥有项目的项目路径,我们无法编辑。

如果你想推送一个特定的项目代码,那么你必须在本地机器上创建时在不同的文件夹中打开项目,然后推送到 github。

您可能 select 编辑了不同的文件夹以从 Visual Studio 推送您的代码,因此它没有被推送到存储库,您可以尝试在创建函数应用程序时更改到不同的文件夹并尝试将其从 VS 推送到 git 存储库。