-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading to 11.1 breaks ClickOnce deployment #16732
Comments
I have the same problem. 👍 |
@heuristicAL in case you have a support agreement the team may be able to help further. Otherwise try to reproduce in a simple sample and upload it here |
Exactly the same problem here. After installing it with ClickOnce I get the same error when looking into the EventViewer. |
Fixed by #16835 |
I checked the current beta version containing the PR, but I got the same issue. Is it only for me? |
@cauefelipe1 I also still have the same issue. |
Can't reproduce it with |
Got the same exception when using the 11.2.0-beta2: CoreCLR Version: 8.0.824.36612 |
How are you publishing the project? Can you share the source code? |
@TomEdwardsEnscape, it works fine if I publish it in a folder, but when I create a ClickOnce profile and publish it that way, I get the error above. |
The repro steps in the bug are missing the important step of actually publishing via the ClickOnce system. This is not the same as executing the given MSBuild command, and there are still issues due to the way ClickOnce generates its file layout. The "entry point assembly" is captured at evaluation time. This means that even though our target executes at the correct time, there is a copy of the original file path that it doesn't know about and so can't update. As a result, the assembly being published doesn't have XAML compile output (all referenced assemblies are OK though). I can think of three ways to fix this:
|
Is step 1 something that I can do by my self? |
Describe the bug
Running locally works fine using either my IDE or
dotnet run
.When packing the application using a variation of the following command:
msbuild MyApp.sln -t:restore,publish -p:Configuration=Release -p:PublishProfile="${{env.PUBLISH_PROFILE}}" -p:PublishDir="${{env.PUBLISH_PATH}}" -p:ApplicationRevision=${{github.run_number}} -p:PublishUrl="${{env.DEPLOY_DEST}}" -p:InstallUrl="${{env.DEPLOY_DEST}}"
It builds and publishes properly but, when trying to run the actual artifact produced by this, I get the following error:
In this case, my Program.cs builds the Avalonia app this way:
Where
App
is class in theMyApp.App
project.My only possible thought here is the ClickOnce is weird and not properly packing the app, but this doesn't explain why it worked fine with Avalonia 11 and 10.
To Reproduce
Try to deploy an app using ClickOnce and
msbuild
?Expected behavior
The output app should run as it did for v11.0
Avalonia version
11.1.3
OS
Windows
Additional context
Unfortunately this is a Company app so I'm limited in the source code I can share. Hopefully the conditions causing the bug rings a bell to anyone more intimate with the changes from 11.0 => 11.1!
I should also mention that my
csproj
for this project look a LOT like the defaultcsproj
from the 11.1 template, and so should run fine.The text was updated successfully, but these errors were encountered: