ASP.Net Core 3 app compile but doesn't when publishing

Hi, Sorry for the lack of more information, I'll try to debug this more in the following week.

I'm using Rider, .net core 3.1 under Linux and I have a working project with sub-projects from a book

I'm using to learn this.

 

The application compile and execute without any problems.

Publishing from Rider's UI kind of recompile the application but it fail on some project dependencies

(ex.: error CS0246: The type or namespace name 'NLog' could not be found (are you missing a using directive or an assembly reference?))

Simply running dotnet build or dotnet publish seems to work on the command line.

The log file from Rider build window doesn't show me the complete command it used to execute.

 

Right now, I'm not sure how to debug this...

3 comments
Comment actions Permalink

Hi Martin,

 

Could you clarify, what book are you using and which project project from this book has this issue? What distro are you using and what method you used to install dotnet (apt/snap/install scripts)?

 

If possible, please collect the logs using Help->Collect Logs action and send us the generated archive? It would also help if you could send the project that fails to build in your environment as well.You can use this form to send us the project/logs privately.

 

 

0
Comment actions Permalink

Hi Kirill,

I used the form to send you the project and the publish log.

0
Comment actions Permalink

Hi Martin,

Thank you for providing us with the project and log. It seems like you have encountered a known publish issue. Please use dotnet publish from the terminal as a temporary workaround until fix for this issue lands in Rider. You can use "Watch issue" on the tracker to monitor the progress. I'm sorry for the inconvenience.

 

Please let me know if you have any other questions.

0

Please sign in to leave a comment.