LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I remove requirement for .aliases file in LabVIEW2020 .EXE

Solved!
Go to solution

The .aliases file in my project is simply filled with was looks to be a MAC address, and this should not be needed when compiling my .exe. However, when I remove it from my project and try to compile, the compile fails because it is looking for a .aliases file. I feel like I should be able to go into Build Specifications > Properties > Source Files, and remove it, however it is not there. If I try to build an installer and go to Build Specifications > Properties > Source Files, I can see the .aliases file but I cannot click on it because it is grayed out. How do I remove the requirement for this .aliases file when compiling?

0 Kudos
Message 1 of 12
(796 Views)

Typically, it contains an IP address, not a MAC address. What exact problem are you trying to solve with all this?

0 Kudos
Message 2 of 12
(779 Views)

The problem is we don't want the .aliases file in source control, so we need to remove its dependency in the compilation.

0 Kudos
Message 3 of 12
(743 Views)

Hi justyn,

 


@justynfogarty wrote:

The problem is we don't want the .aliases file in source control,


Atleast in SVN you can define which files to exclude from source control. I usually exclude files like *.aliases and *.lvlps…

(There are cases where you need them so you need to decide per project…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 12
(738 Views)

I know how to remove a the file from source control, but the compilation will fail because it is expecting an .aliases file which really doesn't do anything. How do I remove this dependency from the compilation?

0 Kudos
Message 5 of 12
(728 Views)

Add the *.aliases to ignore list of SVN or Git, this way it is not tracked but it will still be created locally.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 6 of 12
(714 Views)

Assuming you are talking about the project's .aliases file:

 

I suspect you have somehow put it in the "Source Files" > "Always Included" section of your executable build specification, either directly or indirectly by including a whole folder. Then, if you remove the file on disk, the project explorer will show a missing file conflict and if you try to compile, the application builder will complain that some "required" files are missing.

 

A solution is to simply remove the .aliases file from your project (and from your build spec), as it has no use inside a LabVIEW project.

 

Regards,

Raphaël.

0 Kudos
Message 7 of 12
(707 Views)

1. The .aliases file is ignored in my source control
2. The .aliases file is not in the directory of my project when I open the project. Then if I open the project the .aliases file is created. I cannot remove the .aliases file in the Project Explorer window. If I use File Explorer to delete the .aliases file and try to compile, the compilation will fail because it is expecting it.
3. The .aliases file is not in "Source Files" > "Always Included"

0 Kudos
Message 8 of 12
(700 Views)
Solution
Accepted by topic author justynfogarty

@justynfogarty wrote:

I cannot remove the .aliases file in the Project Explorer window.


What do you mean by that? Any item (well almost...) can be deleted from the project, unless it is inside an auto-populated folder or is a dependency of another item. If it is inside an auto-populated folder, then convert it to a virtual folder and remove the .aliases from the project.

 

If this does not work, you will need to attach your project, or at least a minimal project that reproduces this behavior. Otherwise we cannot see what's wrong with your project. Don't forget to "Save for Previous Version" the project (version 21.0 maximum) before attaching it. Also, attach all dependency files (VIs, CTLs...), not just the lvproj. If there are multiple files, please prefer attaching a .zip.

Message 9 of 12
(691 Views)

I have changed the folder from auto-populated to virtual. Now the .aliases file is not being created when opening the project. However, this still does not fix the problem I am having. How do I make the project compile without the .aliases file?

0 Kudos
Message 10 of 12
(649 Views)