[CONNECT .NET] CONNECT Update 11 SDK: Build ManagedItemTypesExample fails in Visual Studio

I can open the MicroStation CONNECT Update 11 SDK command window and invoke BuildAllExamples.bat successfully.

If I change to folder \Annotatation\ManagedItemTypesExample and execute openSln.bat in the same SDK command window then Viz Studio opens and loads that project.

However, when I build that project in Viz Studio the build fails.  Viz Studio complains that it can't create temporary files in

...\SDK\examples\Annotations\ManagedItemTypesExample\obj\Debug

If I create those folders (obj, Debug) manually then Viz Studio builds successfully.

Parents
  • PMFJI, I can reproduce Jon's issue on my machine as below:

    I checked Output path property of this project, its value is ..\..\..\..\..\..\PROGRA~1\Bentley\MICROS~2\MICROS~1\mdlapps\.

    After I changed it to C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\Mdlapps, build action doesn't need obj\Debug folder anymore. So I guess it maybe this Output path setting problem(VS can't find Output path, then it will create output file in local directory's obj\Debug folder).

     Weird thing is, when I copied ..\..\..\..\..\..\PROGRA~1\Bentley\MICROS~2\MICROS~1\mdlapps\ back to Output path field and rebuild this project, no error occured.



Reply
  • PMFJI, I can reproduce Jon's issue on my machine as below:

    I checked Output path property of this project, its value is ..\..\..\..\..\..\PROGRA~1\Bentley\MICROS~2\MICROS~1\mdlapps\.

    After I changed it to C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\Mdlapps, build action doesn't need obj\Debug folder anymore. So I guess it maybe this Output path setting problem(VS can't find Output path, then it will create output file in local directory's obj\Debug folder).

     Weird thing is, when I copied ..\..\..\..\..\..\PROGRA~1\Bentley\MICROS~2\MICROS~1\mdlapps\ back to Output path field and rebuild this project, no error occured.



Children