Skip to content

New git clone failing to build #1

Description

@dpaulino

Got this error when I tried to build a new git clone. Is there some required configuration that I'm missing?

Rebuild started...
NU1102: Unable to find package SwipeNavigation.SwipeNavigator with version (= 0.0.0)
  - Found 4 version(s) in nuget.org [ Nearest version: 0.1.0 ]
  - Found 0 version(s) in Microsoft Visual Studio Offline Packages
  - Found 0 version(s) in LocalPackages
Restored C:\Users\kid_j\source\repos\SwipeNavigator\SwipeNavigator\SwipeNavigatorTest\SwipeNavigatorTest.csproj (in 234 ms).
1>------ Rebuild All started: Project: SwipeNavigatorTestNuget, Configuration: Debug x64 ------
2>------ Rebuild All started: Project: SwipeNavigator, Configuration: Debug x64 ------
Failed to restore C:\Users\kid_j\source\repos\SwipeNavigator\SwipeNavigator\SwipeNavigatorTestNuget\SwipeNavigatorTestNuget.csproj (in 234 ms).
NuGet package restore failed. Please see Error List window for detailed warnings and errors.
2>64 bit MIDLRT Processing C:\Users\kid_j\source\repos\SwipeNavigator\SwipeNavigator\SwipeNavigator\IconMode.idl
2>IconMode.idl
1>  C:\Users\kid_j\source\repos\SwipeNavigator\SwipeNavigator\SwipeNavigatorTestNuget\..\scripts\build : File 
1>  C:\Users\kid_j\source\repos\SwipeNavigator\SwipeNavigator\scripts\build.ps1 cannot be loaded because running scripts 
1>  is disabled on this system. For more information, see about_Execution_Policies at 
1>  https:/go.microsoft.com/fwlink/?LinkID=135170.
1>  At line:1 char:170
1>  + ... { exit 0 }; C:\Users\kid_j\source\repos\SwipeNavigator\SwipeNavigator ...
1>  +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1>      + CategoryInfo          : SecurityError: (:) [], PSSecurityException
1>      + FullyQualifiedErrorId : UnauthorizedAccess
1>  move : Cannot find path 
1>  'C:\Users\kid_j\source\repos\SwipeNavigator\SwipeNavigator\build\SwipeNavigation.SwipeNavigator.0.0.0.nupkg' because 
1>  it does not exist.
1>  At line:1 char:285
1>  + ... sion 0.0.0; move C:\Users\kid_j\source\repos\SwipeNavigator\SwipeNavi ...
1>  +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1>      + CategoryInfo          : ObjectNotFound: (C:\Users\kid_j\...tor.0.0.0.nupkg:String) [Move-Item], ItemNotFoundExce 
1>     ption
1>      + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.MoveItemCommand
1>   
2>midlrt : error MIDL1001: [msg]cannot open input file [context]winrtbase.idl
2>Done building project "SwipeNavigator.vcxproj" -- FAILED.
3>------ Rebuild All started: Project: SwipeNavigatorTest, Configuration: Debug x64 ------
3>C:\Users\kid_j\source\repos\SwipeNavigator\SwipeNavigator\SwipeNavigatorTest\SwipeNavigatorTest.csproj : XamlCompiler error WMC1006: Cannot resolve Assembly or Windows Metadata file 'C:\Users\kid_j\source\repos\SwipeNavigator\SwipeNavigator\x64\Debug\SwipeNavigator\SwipeNavigation.winmd'
1>  nuget : The term 'nuget' is not recognized as the name of a cmdlet, function, script file, or operable program. Check 
1>  the spelling of the name, or if a path was included, verify that the path is correct and try again.
1>  At line:1 char:580
1>  + ... calPackages\SwipeNavigation.SwipeNavigator.0.0.0.nupkg; nuget restore ...
1>  +                                                             ~~~~~
1>      + CategoryInfo          : ObjectNotFound: (nuget:String) [], CommandNotFoundException
1>      + FullyQualifiedErrorId : CommandNotFoundException
1>   
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(1384,5): error MSB3073: The command "powershell -c "if (test-path C:\Users\kid_j\source\repos\SwipeNavigator\SwipeNavigator\SwipeNavigatorTestNuget\..\LocalPackages\SwipeNavigation.SwipeNavigator.0.0.0.nupkg) { exit 0 }; C:\Users\kid_j\source\repos\SwipeNavigator\SwipeNavigator\SwipeNavigatorTestNuget\..\scripts\build -version 0.0.0; move C:\Users\kid_j\source\repos\SwipeNavigator\SwipeNavigator\SwipeNavigatorTestNuget\..\build\SwipeNavigation.SwipeNavigator.0.0.0.nupkg -destination C:\Users\kid_j\source\repos\SwipeNavigator\SwipeNavigator\SwipeNavigatorTestNuget\..\LocalPackages\SwipeNavigation.SwipeNavigator.0.0.0.nupkg; nuget restore C:\Users\kid_j\source\repos\SwipeNavigator\SwipeNavigator\SwipeNavigatorTestNuget\\SwipeNavigatorTestNuget.csproj"" exited with code 1.
3>CSC : error CS0006: Metadata file 'C:\Users\kid_j\source\repos\SwipeNavigator\SwipeNavigator\x64\Debug\SwipeNavigator\SwipeNavigation.winmd' could not be found
========== Rebuild All: 0 succeeded, 3 failed, 0 skipped ==========
========== Rebuild started at 5:31 AM and took 06.417 seconds ==========

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions