Open Top-Dev-Ops opened 4 years ago
try following along here: https://developer.dynamobim.org/02-Build-Dynamo-From-Source/2-1-build-dynamo-revit-from-source.html
or with the repo readme, for most efficient help you should detail every step you performed.
Thank you Michael for your answer. But I already followed the instructions there. Still get errors. Can you suggest me other solutions? LongMa
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Michael Kirschnermailto:notifications@github.com Sent: Wednesday, April 8, 2020 4:07 AM To: DynamoDS/DynamoRevitmailto:DynamoRevit@noreply.github.com Cc: longma19900415mailto:longma19900415@outlook.com; Authormailto:author@noreply.github.com Subject: Re: [DynamoDS/DynamoRevit] Dynamo Revit build error (#2538)
try following along here: https://developer.dynamobim.org/02-Build-Dynamo-From-Source/2-1-build-dynamo-revit-from-source.html
or with the repo readme, for most efficient help you should detail every step you performed.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/DynamoDS/DynamoRevit/issues/2538#issuecomment-610594280, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOPUDYZD6T6OE5BYK7DHM3LRLOBXNANCNFSM4MDLXUTQ.
I can't help much without knowing exactly what steps you performed.
All I can say from your output is this:
did you run the restoreAll.bat file with admin privileges as described in the readme?
Hello Michael, I will share the steps that I have done with you. I downloaded dynamorevit from GitHub and unzipped it. I ran restorepackages.bat with admin privileges. I opened dynamorevit.add.sln in visual studio 2019 and tried to build the solution but it shows me errors like the text file attached. Can you please check it and tell me the cause of errors? I really need to fix this. Thank you. LongMa
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Michael Kirschnermailto:notifications@github.com Sent: Wednesday, April 8, 2020 4:21 AM To: DynamoDS/DynamoRevitmailto:DynamoRevit@noreply.github.com Cc: longma19900415mailto:longma19900415@outlook.com; Authormailto:author@noreply.github.com Subject: Re: [DynamoDS/DynamoRevit] Dynamo Revit build error (#2538)
I can't help much without knowing exactly what steps you performed.
All I can say from your output is this:
did you run the restoreAll.bat file with admin privileges as described in the readme?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/DynamoDS/DynamoRevit/issues/2538#issuecomment-610600716, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOPUDY5X4DUIDAF3I3DZXHLRLODM5ANCNFSM4MDLXUTQ.
1>------ Build started: Project: AssemblyInfoGenerator, Configuration: Debug Any CPU ------
2>------ Build started: Project: DynamoRevitIcons, Configuration: Debug Any CPU ------
3>------ Build started: Project: DynamoAddinGenerator, Configuration: Debug Any CPU ------
2> DynamoRevitIcons -> D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\DynamoRevitIcons.dll
3>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "RevitAddinUtility", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
3>D:\Research\Autodesk\DynamoRevit-master\src\AssemblySharedInfoGenerator\AssemblySharedInfo.cs(1,1,1,22): error CS0116: A namespace cannot directly contain members such as fields or methods
1> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages
1> Running Python script from D:\Research\Autodesk\DynamoRevit-master\src\Tools\Aget\aget.exe using dynamo-nuget.config file
1> ========================================================
1> [Aget] Downloading NuGet packages from the NuGet Gallery and the Artifactory server, might take a while if running for the first time.
1> 01:14 PM
1> ========================================================
1> If any package is not found in the NuGet Gallery, redirect to look up in the Artifactory server...
1> Restoring packages for C:\Users\longm\AppData\Local\Temp\tmprvrmeue2\project.json...
1> Committing restore...
1> Writing lock file to disk. Path: C:\Users\longm\AppData\Local\Temp\tmprvrmeue2\project.lock.json
1> C:\Users\longm\AppData\Local\Temp\tmprvrmeue2\project.json
1> Restore completed in 250ms.
1>
1> NuGet Config files used:
1> D:\Research\Autodesk\DynamoRevit-master\src\Config\dynamo-nuget.config
1>
1> Feeds used:
1> https://www.nuget.org/api/v2/
1> Generating project references...
1> Executing nuget.exe to restore packages...
1> Command: D:\Research\Autodesk\DynamoRevit-master\src\Tools\NugetCLI\nuget.exe restore C:\Users\longm\AppData\Local\Temp\tmprvrmeue2\project.json -NoCache -NonInteractive -PackagesDirectory D:\Research\Autodesk\DynamoRevit-master\src\packages_packages -ConfigFile D:\Research\Autodesk\DynamoRevit-master\src\Config\dynamo-nuget.config
1> Generating symlinks...
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\DynamicLanguageRuntime -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\DynamicLanguageRuntime/1.2.2
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\DynamoVisualProgramming.Core -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\DynamoVisualProgramming.Core/2.5.0.7432
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\Newtonsoft.Json -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\Newtonsoft.Json/8.0.3
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\DynamoVisualProgramming.DynamoCoreNodes -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\DynamoVisualProgramming.DynamoCoreNodes/2.5.0.7432
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\DynamoVisualProgramming.DynamoServices -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\DynamoVisualProgramming.DynamoServices/2.5.0.7432
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\CommonServiceLocator -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\CommonServiceLocator/1.0.0
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\Prism -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\Prism/4.1.0
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\IronPython -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\IronPython/2.7.9
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\GregRevitAuth -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\GregRevitAuth/1.0.7057.20655
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\DynamoVisualProgramming.Tests -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\DynamoVisualProgramming.Tests/2.5.0.7432
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\Unofficial.Ionic.Zip -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\Unofficial.Ionic.Zip/1.9.1.8
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\DynamoVisualProgramming.WpfUILibrary -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\DynamoVisualProgramming.WpfUILibrary/2.5.0.7432
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\NUnit -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\NUnit/2.6.3
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\DynamoVisualProgramming.DynamoSamples -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\DynamoVisualProgramming.DynamoSamples/2.5.0.7432
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\DynamoVisualProgramming.ZeroTouchLibrary -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\DynamoVisualProgramming.ZeroTouchLibrary/2.5.0.7432
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\RestSharp -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\RestSharp/105.2.3
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\Greg -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\Greg/1.2.7177.24952
1> Reference files are in D:\Research\Autodesk\DynamoRevit-master\src\packages
1> Packages are in D:\Research\Autodesk\DynamoRevit-master\src\packages_packages
1> ========================================================
1> restorepackages: exiting from batch script
1> 01:14 PM
1> ========================================================
1> executing transform_all from "D:\Research\Autodesk\DynamoRevit-master\src\AssemblySharedInfoGenerator\"
1> the following T4 templates will be transformed:
1> AssemblySharedInfo.tt
1> --> AssemblySharedInfo.cs
1> "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\TextTransform.exe" -out AssemblySharedInfo.cs AssemblySharedInfo.tt
1>D:\Research\Autodesk\DynamoRevit-master\src\AssemblySharedInfoGenerator\AssemblySharedInfo.tt(1,1): error CS1519: Compiling transformation: Invalid token 'this' in class, struct, or interface member declaration
1>D:\Research\Autodesk\DynamoRevit-master\src\AssemblySharedInfoGenerator\AssemblySharedInfo.tt(1,12): error CS1001: Compiling transformation: Identifier expected
1>D:\Research\Autodesk\DynamoRevit-master\src\AssemblySharedInfoGenerator\AssemblySharedInfo.tt(1,6): error CS1520: Compiling transformation: Method must have a return type
1>D:\Research\Autodesk\DynamoRevit-master\src\AssemblySharedInfoGenerator\AssemblySharedInfo.tt(1,6): error CS0501: Compiling transformation: 'GeneratedTextTransformation.GeneratedTextTransformation()' must declare a body because it is not marked abstract, extern, or partial
1> transformation complete
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1328,5): error MSB3073: The command ""D:\Research\Autodesk\DynamoRevit-master\src\transform_all.bat" "D:\Research\Autodesk\DynamoRevit-master\src\AssemblySharedInfoGenerator\"" exited with code -1.
4>------ Build started: Project: RevitServices, Configuration: Debug Any CPU ------
5>------ Build started: Project: Migrations, Configuration: Debug Any CPU ------
6>------ Build started: Project: DynamoRevitVersionSelector, Configuration: Debug Any CPU ------
6>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "RevitAPI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
6>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "RevitAPIUI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
6>D:\Research\Autodesk\DynamoRevit-master\src\AssemblySharedInfoGenerator\AssemblySharedInfo.cs(1,1,1,22): error CS0116: A namespace cannot directly contain members such as fields or methods
5>D:\Research\Autodesk\DynamoRevit-master\src\AssemblySharedInfoGenerator\AssemblySharedInfo.cs(1,1,1,22): error CS0116: A namespace cannot directly contain members such as fields or methods
4>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "RevitAPI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
4>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "RevitAPIUI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
4>D:\Research\Autodesk\DynamoRevit-master\src\AssemblySharedInfoGenerator\AssemblySharedInfo.cs(1,1,1,22): error CS0116: A namespace cannot directly contain members such as fields or methods
7>------ Build started: Project: RevitNodes, Configuration: Debug Any CPU ------
7> D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes\RevitNodes_DynamoCustomization.xml
7> 1 file(s) copied.
7> D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes\RevitNodes.Migrations.xml
7> 1 file(s) copied.
7>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "RevitAPI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
7>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "RevitAPIUI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
7>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\RevitServices.dll' could not be found
8>------ Build started: Project: DynamoRevit, Configuration: Debug Any CPU ------
8>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\RevitNodes.dll' could not be found
8>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\RevitServices.dll' could not be found
9>------ Build started: Project: RevitTestServices, Configuration: Debug Any CPU ------
10>------ Build started: Project: RevitNodesUI, Configuration: Debug Any CPU ------
11>------ Build started: Project: RevitServicesTests, Configuration: Debug Any CPU ------
11>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "RevitAPI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
11>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "RevitAPIUI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
11>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\DynamoRevitDS.dll' could not be found
11>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\RevitServices.dll' could not be found
10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "RevitAPI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "RevitAPIUI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
10>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\DynamoRevitDS.dll' could not be found
10>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\RevitNodes.dll' could not be found
10>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\RevitServices.dll' could not be found
9>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "RevitAPI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
9>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "RevitAPIUI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
9>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\DynamoRevitDS.dll' could not be found
9>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\RevitServices.dll' could not be found
12>------ Build started: Project: RevitNodesTests, Configuration: Debug Any CPU ------
12>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "RevitAPI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
12>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\RevitNodes.dll' could not be found
12>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\RevitServices.dll' could not be found
12>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\RevitTestServices.dll' could not be found
13>------ Build started: Project: RevitSystemTests, Configuration: Debug Any CPU ------
13> executing transform_all from "D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitIntegrationTests\"
13> the following T4 templates will be transformed:
13> RevitTestConfiguration.tt
13> --> RevitTestConfiguration.xml
13> "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\TextTransform.exe" -out RevitTestConfiguration.xml RevitTestConfiguration.tt
13> transformation complete
13>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "RevitAPI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
13>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "RevitAPIUI". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
13>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\nodes\DSRevitNodesUI.dll' could not be found
13>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\DynamoRevitDS.dll' could not be found
13>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\RevitNodes.dll' could not be found
13>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\RevitNodesTests.dll' could not be found
13>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\RevitServices.dll' could not be found
13>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\bin\AnyCPU\Debug\Revit\RevitTestServices.dll' could not be found
========== Build: 1 succeeded, 12 failed, 0 up-to-date, 0 skipped ==========
@longma19900415 thanks - there are at-least 2 issues you need to correct:
specifically, you'll want to set this: https://github.com/DynamoDS/DynamoRevit/blob/master/src/Config/CS.props#L9 RevitVersionNumber to whatever version you are trying to build - it's currently looking for a preview release build, not 2020.
you might want to just try building the 2020 release...
like this branch: https://github.com/DynamoDS/DynamoRevit/tree/RC2.3.0_Revit2020
Hello Michael. I am so sorry for the trouble. But I still get some errors.
I attached files that I feel necessary for analyzing errors. Please help me on this matter. Best regards.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Michael Kirschnermailto:notifications@github.com Sent: Thursday, April 9, 2020 12:29 AM To: DynamoDS/DynamoRevitmailto:DynamoRevit@noreply.github.com Cc: longma19900415mailto:longma19900415@outlook.com; Mentionmailto:mention@noreply.github.com Subject: Re: [DynamoDS/DynamoRevit] Dynamo Revit build error (#2538)
like this branch: https://github.com/DynamoDS/DynamoRevit/tree/RC2.3.0_Revit2020
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/DynamoDS/DynamoRevit/issues/2538#issuecomment-611059180, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOPUDY4ASYJHH64XUAOYYBTRLSQ5XANCNFSM4MDLXUTQ.
Severity Code Description Project File Line Suppression State Error CS0006 Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\DynamoRevit\bin\x64\Debug\DynamoRevitDS.dll' could not be found RevitSystemTests D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitIntegrationTests\CSC 1 Active Error CS0006 Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\DynamoRevit\bin\x64\Debug\DynamoRevitDS.dll' could not be found RevitTestServices D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitTestServices\CSC 1 Active Error CS0006 Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\DynamoRevit\bin\x64\Debug\DynamoRevitDS.dll' could not be found RevitNodesUI D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodesUI\CSC 1 Active Error CS0006 Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\DynamoRevit\bin\x64\Debug\DynamoRevitDS.dll' could not be found RevitServicesTests D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitServicesTests\CSC 1 Active Error CS0006 Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodesUI\bin\x64\Debug\DSRevitNodesUI.dll' could not be found RevitSystemTests D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitIntegrationTests\CSC 1 Active Error CS0006 Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes\bin\x64\Debug\RevitNodes.dll' could not be found DynamoRevit D:\Research\Autodesk\DynamoRevit-master\src\DynamoRevit\CSC 1 Active Error CS0006 Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes\bin\x64\Debug\RevitNodes.dll' could not be found RevitNodesTests D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitNodesTests\CSC 1 Active Error CS0006 Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes\bin\x64\Debug\RevitNodes.dll' could not be found RevitNodesUI D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodesUI\CSC 1 Active Error CS0006 Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes\bin\x64\Debug\RevitNodes.dll' could not be found RevitSystemTests D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitIntegrationTests\CSC 1 Active Error CS0006 Metadata file 'D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitNodesTests\bin\x64\Debug\RevitNodesTests.dll' could not be found RevitSystemTests D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitIntegrationTests\CSC 1 Active Error CS0006 Metadata file 'D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitTestServices\bin\x64\Debug\RevitTestServices.dll' could not be found RevitNodesTests D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitNodesTests\CSC 1 Active Error CS0006 Metadata file 'D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitTestServices\bin\x64\Debug\RevitTestServices.dll' could not be found RevitSystemTests D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitIntegrationTests\CSC 1 Active Error The command "copy /Y "D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes*_DynamoCustomization.xml" "bin\x64\Debug\" copy /Y "D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes*.Migrations.xml" "bin\x64\Debug\"" exited with code 1. RevitNodes
1>------ Build started: Project: AssemblyInfoGenerator, Configuration: Debug x64 ------
2>------ Build started: Project: DynamoRevitIcons, Configuration: Debug x64 ------
3>------ Build started: Project: DynamoAddinGenerator, Configuration: Debug x64 ------
3> DynamoAddinGenerator -> D:\Research\Autodesk\DynamoRevit-master\src\Tools\DynamoAddinGenerator\bin\x64\Debug\DynamoAddInGenerator.exe
2> DynamoRevitIcons -> D:\Research\Autodesk\DynamoRevit-master\src\DynamoRevitIcons\bin\x64\Debug\DynamoRevitIcons.dll
1> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages
1> Running Python script from D:\Research\Autodesk\DynamoRevit-master\src\Tools\Aget\aget.exe using dynamo-nuget.config file
1> ========================================================
1> [Aget] Downloading NuGet packages from the NuGet Gallery and the Artifactory server, might take a while if running for the first time.
1> 01:42 AM
1> ========================================================
1> If any package is not found in the NuGet Gallery, redirect to look up in the Artifactory server...
1> Restoring packages for C:\Users\longm\AppData\Local\Temp\tmptbv53rka\project.json...
1> Committing restore...
1> Writing lock file to disk. Path: C:\Users\longm\AppData\Local\Temp\tmptbv53rka\project.lock.json
1> C:\Users\longm\AppData\Local\Temp\tmptbv53rka\project.json
1> Restore completed in 476ms.
1>
1> NuGet Config files used:
1> D:\Research\Autodesk\DynamoRevit-master\src\Config\dynamo-nuget.config
1>
1> Feeds used:
1> https://www.nuget.org/api/v2/
1> Generating project references...
1> Executing nuget.exe to restore packages...
1> Command: D:\Research\Autodesk\DynamoRevit-master\src\Tools\NugetCLI\nuget.exe restore C:\Users\longm\AppData\Local\Temp\tmptbv53rka\project.json -NoCache -NonInteractive -PackagesDirectory D:\Research\Autodesk\DynamoRevit-master\src\packages_packages -ConfigFile D:\Research\Autodesk\DynamoRevit-master\src\Config\dynamo-nuget.config
1> Generating symlinks...
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\RestSharp -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\RestSharp/105.2.3
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\Greg -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\Greg/1.2.7177.24952
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\DynamicLanguageRuntime -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\DynamicLanguageRuntime/1.2.2
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\IronPython -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\IronPython/2.7.9
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\NUnit -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\NUnit/2.6.3
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\DynamoVisualProgramming.DynamoCoreNodes -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\DynamoVisualProgramming.DynamoCoreNodes/2.5.0.7432
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\DynamoVisualProgramming.DynamoServices -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\DynamoVisualProgramming.DynamoServices/2.5.0.7432
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\DynamoVisualProgramming.ZeroTouchLibrary -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\DynamoVisualProgramming.ZeroTouchLibrary/2.5.0.7432
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\DynamoVisualProgramming.DynamoSamples -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\DynamoVisualProgramming.DynamoSamples/2.5.0.7432
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\Prism -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\Prism/4.1.0
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\Newtonsoft.Json -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\Newtonsoft.Json/8.0.3
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\CommonServiceLocator -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\CommonServiceLocator/1.0.0
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\DynamoVisualProgramming.Tests -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\DynamoVisualProgramming.Tests/2.5.0.7432
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\Unofficial.Ionic.Zip -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\Unofficial.Ionic.Zip/1.9.1.8
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\DynamoVisualProgramming.Core -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\DynamoVisualProgramming.Core/2.5.0.7432
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\DynamoVisualProgramming.WpfUILibrary -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\DynamoVisualProgramming.WpfUILibrary/2.5.0.7432
1> Creating D:\Research\Autodesk\DynamoRevit-master\src\packages\GregRevitAuth -> D:\Research\Autodesk\DynamoRevit-master\src\packages_packages\GregRevitAuth/1.0.7057.20655
1> Reference files are in D:\Research\Autodesk\DynamoRevit-master\src\packages
1> Packages are in D:\Research\Autodesk\DynamoRevit-master\src\packages_packages
1> ========================================================
1> restorepackages: exiting from batch script
1> 01:42 AM
1> ========================================================
1> executing transform_all from "D:\Research\Autodesk\DynamoRevit-master\src\AssemblySharedInfoGenerator\"
1> the following T4 templates will be transformed:
1> AssemblySharedInfo.tt
1> --> AssemblySharedInfo.cs
1> "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\TextTransform.exe" -out AssemblySharedInfo.cs AssemblySharedInfo.tt
1> transformation complete
1> AssemblyInfoGenerator -> D:\Research\Autodesk\DynamoRevit-master\src\AssemblySharedInfoGenerator\bin\x64\Debug\AssemblyInfoGenerator.dll
4>------ Build started: Project: RevitServices, Configuration: Debug x64 ------
5>------ Build started: Project: Migrations, Configuration: Debug x64 ------
6>------ Build started: Project: DynamoRevitVersionSelector, Configuration: Debug x64 ------
5> Migrations -> D:\Research\Autodesk\DynamoRevit-master\src\Libraries\Migrations\bin\x64\Debug\Migrations.dll
4> RevitServices -> D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitServices\bin\x64\Debug\RevitServices.dll
7>------ Build started: Project: RevitNodes, Configuration: Debug x64 ------
7> D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes\RevitNodes_DynamoCustomization.xml
7> The system cannot find the path specified.
7> 0 file(s) copied.
7> D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes\RevitNodes.Migrations.xml
7> The system cannot find the path specified.
7> 0 file(s) copied.
7>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1328,5): error MSB3073: The command "copy /Y "D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes*_DynamoCustomization.xml" "bin\x64\Debug\"
7>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1328,5): error MSB3073: copy /Y "D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes*.Migrations.xml" "bin\x64\Debug\"" exited with code 1.
8>------ Build started: Project: DynamoRevit, Configuration: Debug x64 ------
8>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes\bin\x64\Debug\RevitNodes.dll' could not be found
9>------ Build started: Project: RevitTestServices, Configuration: Debug x64 ------
10>------ Build started: Project: RevitNodesUI, Configuration: Debug x64 ------
11>------ Build started: Project: RevitServicesTests, Configuration: Debug x64 ------
6>ALINK : warning AL1073: Referenced assembly 'mscorlib.dll' targets a different processor
6> DynamoRevitVersionSelector -> D:\Research\Autodesk\DynamoRevit-master\src\Legacy\DynamoRevitVersionSelector\bin\x64\Debug\DynamoRevitVersionSelector.dll
9>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\DynamoRevit\bin\x64\Debug\DynamoRevitDS.dll' could not be found
12>------ Build started: Project: RevitNodesTests, Configuration: Debug x64 ------
12>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes\bin\x64\Debug\RevitNodes.dll' could not be found
12>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitTestServices\bin\x64\Debug\RevitTestServices.dll' could not be found
11>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\DynamoRevit\bin\x64\Debug\DynamoRevitDS.dll' could not be found
10>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\DynamoRevit\bin\x64\Debug\DynamoRevitDS.dll' could not be found
10>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes\bin\x64\Debug\RevitNodes.dll' could not be found
13>------ Build started: Project: RevitSystemTests, Configuration: Debug x64 ------
13> executing transform_all from "D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitIntegrationTests\"
13> the following T4 templates will be transformed:
13> RevitTestConfiguration.tt
13> --> RevitTestConfiguration.xml
13> "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\TextTransform.exe" -out RevitTestConfiguration.xml RevitTestConfiguration.tt
13> transformation complete
13>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodesUI\bin\x64\Debug\DSRevitNodesUI.dll' could not be found
13>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\DynamoRevit\bin\x64\Debug\DynamoRevitDS.dll' could not be found
13>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes\bin\x64\Debug\RevitNodes.dll' could not be found
13>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitNodesTests\bin\x64\Debug\RevitNodesTests.dll' could not be found
13>CSC : error CS0006: Metadata file 'D:\Research\Autodesk\DynamoRevit-master\test\Libraries\RevitTestServices\bin\x64\Debug\RevitTestServices.dll' could not be found
========== Build: 6 succeeded, 7 failed, 0 up-to-date, 0 skipped ==========
Hi @longma19900415 , which branch did you build? Can you build the DynamoRevitDS project separately?
Thank you for your answer, ZiyunShang. I just installed Autodesk Revit 2019 for students and it all installed Revit and Dynamo as well in C drive. I downloaded DynamoRevit project from github and chose branch 'revit 2019'. Can you give me a clue how to build the dynamorevit project?
Hi @longma19900415 , I suggest you choose the 'master' branch. The branch ‘revit2019’ has not been updated for a long time. May not support VS2019.
I tried with master branch and got the same error. Do you have any idea why this did happen?
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: ZiyunShang notifications@github.com Sent: Wednesday, April 15, 2020 4:01:56 PM To: DynamoDS/DynamoRevit DynamoRevit@noreply.github.com Cc: LongMa Lin longma19900415@outlook.com; Mention mention@noreply.github.com Subject: Re: [DynamoDS/DynamoRevit] Dynamo Revit build error (#2538)
Hi @longma19900415https://github.com/longma19900415 , I suggest you choose the 'master' branch. The branch ‘revit2019’ has not been updated for a long time. May not support VS2019.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/DynamoDS/DynamoRevit/issues/2538#issuecomment-613882867, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOPUDY6JQTOJRKSMSPQBESLRMVSXJANCNFSM4MDLXUTQ.
I just checked your comments. Except for error CS0006, only error MSB3073 appears? Build started: Project: RevitNodes, Configuration: Debug x64 ------ 7> D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes\RevitNodes_DynamoCustomization.xml 7> The system cannot find the path specified. 7> 0 file(s) copied. 7> D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes\RevitNodes.Migrations.xml 7> The system cannot find the path specified. 7> 0 file(s) copied. 7>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1328,5): error MSB3073: The command "copy /Y "D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes*_DynamoCustomization.xml" "bin\x64\Debug\" 7>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1328,5): error MSB3073: copy /Y "D:\Research\Autodesk\DynamoRevit-master\src\Libraries\RevitNodes*.Migrations.xml" "bin\x64\Debug\"" exited with code 1. Can you check if there is a path issue with these two commands?
And can you compile the "DynamoRevit" project separately if it is convenient?
Dear all I need an urgent help from you.
Dynamo version
I just cloned the dynamo revit from github to my computer and am going to build it in visual studio 2019.
Revit version
I am using Autodesk Revit 2020.
Operating system
Windows 10.
What did you do?
When I tried to build it, it showed me a number of errors and most of them are with 'bin\AnyCPU\Debug\Revit\DLLs could not be found'. Can anyone help me on this matter? I will be very grateful for any help. Looking forward to your reply. Best regards. LongMa