Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails due to missing imported project #2

Open
atifaziz opened this issue Oct 17, 2022 · 0 comments
Open

Build fails due to missing imported project #2

atifaziz opened this issue Oct 17, 2022 · 0 comments

Comments

@atifaziz
Copy link
Contributor

The project fails to build due to the missing imported project file Generator\build\DotEnvGenerator.props.

Steps to reproduce:

git clone https://github.com/RainwayApp/dot-env-generator.git
cd dot-env-generator
git checkout 3355f0701c623fe345f7476268c29f62d0a084e9
dotnet build

The checkout of 3355f07 is where master was at the time of reporting this issue.

The last step produces the following output:

MSBuild version 17.3.2+561848881 for .NET
Determining projects to restore...
All projects are up-to-date for restore.
A:\dot-env-generator\Example\Example.csproj(21,3): error MSB4019: The imported project "A:\dot-env-generator\Generator\build\DotEnvGenerator.props" was not found. Confirm that the expression in the Import declaration "..\Generator\build\DotEnvGenerator.props" is correct, and that the file exists on disk.
A:\dot-env-generator\Generator\StringExtensions.cs(40,48): warning CS8602: Dereference of a possibly null reference. [A:\dot-env-generator\Generator\DotEnvGenerator.csproj]
DotEnvGenerator -> A:\dot-env-generator\Generator\bin\Debug\netstandard2.0\DotEnvGenerator.dll
C:\Program Files\dotnet\sdk\6.0.402\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): error : Could not find a part of the path 'A:\dot-env-generator\Generator\build'. [A:\dot-env-generator\Generator\DotEnvGenerator.csproj]

Build FAILED.

A:\dot-env-generator\Generator\StringExtensions.cs(40,48): warning CS8602: Dereference of a possibly null reference. [A:\dot-env-generator\Generator\DotEnvGenerator.csproj]
A:\dot-env-generator\Example\Example.csproj(21,3): error MSB4019: The imported project "A:\dot-env-generator\Generator\build\DotEnvGenerator.props" was not found. Confirm that the expression in the Import declaration "..\Generator\build\DotEnvGenerator.props" is correct, and that the file exists on disk.
C:\Program Files\dotnet\sdk\6.0.402\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): error : Could not find a part of the path 'A:\dot-env-generator\Generator\build'. [A:\dot-env-generator\Generator\DotEnvGenerator.csproj]
    1 Warning(s)
    2 Error(s)

Time Elapsed 00:00:02.09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant