write macros when building solution

write macros when building solution

TK.421
Advisor Advisor
694 Views
3 Replies
Message 1 of 4

write macros when building solution

TK.421
Advisor
Advisor

I have an app that references a number of macros in my c:/dcam folder. That's fine when I run it on my computer, but if I want to give this app to my office mate, he will also need a copy of all the macros in the same directory on his computer, which is fine as well, if there isn't a better way. Is there a way I can have the macro written into the wpf app and have that all inside the solution when I build it so it references nothing externally? That would be better than having to copy more stuff over to my neighbor when I make changes to this app.  What is considered 'best practice' for something like this?

 

thanks!

David


the numbers never lie
0 Likes
Accepted solutions (1)
695 Views
3 Replies
Replies (3)
Message 2 of 4

luke.edwards.autodesk
Community Manager
Community Manager
Accepted solution

I think the best way would be to distribute your app and files in an installer.

If you don't already then you can create an installer in Visual Studio 2017 with this plugin.

 

 

Follow these steps:

  1. Include the macro files in your project in Visual Studio.
  2. Mark them as "Content" in the properties window of each file.
  3. In the folder structure page of the installer properties, add a folder at c:\dcam and choose to include the Content Files in that folder.

Now when you build and run the installer it should put the files into that folder.


Luke Edwards
Consulting Services Manager
Message 3 of 4

TK.421
Advisor
Advisor

thanks Luke! I will try this and let you know. Sounds like it should work if I don't foul it up!


the numbers never lie
0 Likes
Message 4 of 4

TK.421
Advisor
Advisor

Thanks again Luke!


the numbers never lie
0 Likes