FenWangNZ / blog

I love learning. This is my wiki.
0 stars 0 forks source link

Problem solved! Exciting! Visual Studio compiled unsuccessfully on windows installed on Mac via Parallel desktop #4

Open FenWangNZ opened 3 years ago

FenWangNZ commented 3 years ago

Introduction

I run windows via Parallel desktop on my Macbook. In windows, I installed visual studio to learn programming and test automation.

Yesterday I came across a problem when I tested a new code branch for our volunteer accounting software. The developer said he and the other lady were able to compile successfully and they can get the landing page. However, I was not. So I sent the errors to him and we made a call via Teams for 1 hour to troubleshoot this tricky issue. But unfortunately, the issue was still there when the video chatting was over.

After that I re-did the whole process--- I downloaded the branch code again, I cleaned the solution, and build the solution, and compiled it. Then I succeeded. and the time spent compiling was much shorter. I was sooooo curious. Why???? Then I found out: The difference was I downloaded the code into the default directory which is on C:\ on windows. Strange isn't it?????

I was so excited to find out that the directory for the code I downloaded really matters if the directory is not on the same drive with where Visual Studio is installed.

Previously, when I failed to run the codes, I downloaded the code onto my Macbook directory(let's say: Mac\user\username\project). And this will be accessed by windows through a shared directory maybe it is called Z:\user\username\project something like that. Then it will be very slow if VS is building or running, and the database connection through SQL explorer is also very slow. I don't know why, but I suppose it may be because these two system's mechanism is different, it's like you copy files from a local area network. Anyway, have resolved this tricky issue, I am feeling a sense of achievement. Now I will not create my project on different systems from where VS locates.