Share via

Exception thrown when compiling workflow XAML

alan doering 1 Reputation point
2022-03-29T17:07:05.77+00:00

I am trying to compile a WFF XAML. The XAML makes reference to a function defined in a separate DLL. At compile time this function's constructor is being executed by the devenv engine. Unnfortunately, the function's constructor is making a reference to app.config and also trying to make connection to a service on a different machine. The results is that I must provide am app.config in the devenv environment as well as making sure that the serivice is runnning on the other machine. Otherwise an exception is thrown during the compile and the workflow component never gets built.

Is there a way for make the compiler (VS2019) NOT try to execute the functions reference by my XAML?

Community Center | Not monitored

1 answer

Sort by: Most helpful
  1. alan doering 1 Reputation point
    2022-03-30T14:11:17.527+00:00

    I added the code you suggested to to function. Apparently devenv is calling the function but NOT in design mode.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.