ASP.NET MVC Custom Build Configuration not pulling Views outside of project to bin folder The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceHow can I return the current action in an ASP.NET MVC view?Compile Views in ASP.NET MVCHow to render an ASP.NET MVC view as a string?ASP.NET MVC - Set custom IIdentity or IPrincipalASP.NET MVC - Find Absolute Path to the App_Data folder from ControllerASP.NET MVC View Engine ComparisonReturning a file to View/Download in ASP.NET MVCInclude Folder From Other Project While Click-once PublishBuild Action on VisualStudio Web Site projectWebDeploy publish not uploading PDB files (MVC precompiled webapp, VS2013)

Scientific Reports - Significant Figures

Is a pteranodon too powerful as a beast companion for a beast master?

How can I protect witches in combat who wear limited clothing?

Does the AirPods case need to be around while listening via an iOS Device?

First use of “packing” as in carrying a gun

What aspect of planet Earth must be changed to prevent the industrial revolution?

Would it be possible to rearrange a dragon's flight muscle to somewhat circumvent the square-cube law?

Is there a writing software that you can sort scenes like slides in PowerPoint?

Take groceries in checked luggage

What can I do if neighbor is blocking my solar panels intentionally?

Relations between two reciprocal partial derivatives?

In horse breeding, what is the female equivalent of putting a horse out "to stud"?

Match Roman Numerals

He got a vote 80% that of Emmanuel Macron’s

I could not break this equation. Please help me

Problems with Ubuntu mount /tmp

Mortgage adviser recommends a longer term than necessary combined with overpayments

Derivation tree not rendering

Change bounding box of math glyphs in LuaTeX

Segmentation fault output is suppressed when piping stdin into a function. Why?

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

Why did all the guest students take carriages to the Yule Ball?

How does ice melt when immersed in water

How do I add random spotting to the same face in cycles?



ASP.NET MVC Custom Build Configuration not pulling Views outside of project to bin folder



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experienceHow can I return the current action in an ASP.NET MVC view?Compile Views in ASP.NET MVCHow to render an ASP.NET MVC view as a string?ASP.NET MVC - Set custom IIdentity or IPrincipalASP.NET MVC - Find Absolute Path to the App_Data folder from ControllerASP.NET MVC View Engine ComparisonReturning a file to View/Download in ASP.NET MVCInclude Folder From Other Project While Click-once PublishBuild Action on VisualStudio Web Site projectWebDeploy publish not uploading PDB files (MVC precompiled webapp, VS2013)



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















My MVC application has views inside of project and there could be a case where there might be couple of views outside of project in a folder. I created a custom configuration to pull those views into project when I use custom configuration but not pull them in either build or release configuration.
This is my custom configuration:



 <ItemGroup>
<Content Include="......Outside_FolderWeb_App***.*" Exclude="..Outside_FolderWeb_App***.cs" Condition=" '$(Configuration)' == 'Custom_Configuration' ">
<Link>Outside_Folder%(RecursiveDir)%(Filename)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Compile Include="......Outside_FolderWeb_App***.cs" Condition=" '$(Configuration)' == 'Custom_Configuration' ">
<Link>Outside_Folder%(RecursiveDir)%(Filename)%(Extension)</Link>
</Compile>
</ItemGroup>
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)MicrosoftVisualStudiov$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Custom_Configuration|AnyCPU'">
<OutputPath>bin</OutputPath>
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>


Web_App is my main project while, Outside_Folder is one level outside of the project. When I run project in local it pulls views from that folder. But when I publish it with the same configuration, I get the error:



error “System.Web.HttpException file has not been pre-compiled, and cannot be requested



Do I need to do anything extra for this to work even in publish package?










share|improve this question




























    0















    My MVC application has views inside of project and there could be a case where there might be couple of views outside of project in a folder. I created a custom configuration to pull those views into project when I use custom configuration but not pull them in either build or release configuration.
    This is my custom configuration:



     <ItemGroup>
    <Content Include="......Outside_FolderWeb_App***.*" Exclude="..Outside_FolderWeb_App***.cs" Condition=" '$(Configuration)' == 'Custom_Configuration' ">
    <Link>Outside_Folder%(RecursiveDir)%(Filename)%(Extension)</Link>
    <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    </ItemGroup>
    <ItemGroup>
    <Compile Include="......Outside_FolderWeb_App***.cs" Condition=" '$(Configuration)' == 'Custom_Configuration' ">
    <Link>Outside_Folder%(RecursiveDir)%(Filename)%(Extension)</Link>
    </Compile>
    </ItemGroup>
    <PropertyGroup>
    <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
    <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)MicrosoftVisualStudiov$(VisualStudioVersion)</VSToolsPath>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Custom_Configuration|AnyCPU'">
    <OutputPath>bin</OutputPath>
    <DebugType>full</DebugType>
    <DebugSymbols>true</DebugSymbols>
    </PropertyGroup>


    Web_App is my main project while, Outside_Folder is one level outside of the project. When I run project in local it pulls views from that folder. But when I publish it with the same configuration, I get the error:



    error “System.Web.HttpException file has not been pre-compiled, and cannot be requested



    Do I need to do anything extra for this to work even in publish package?










    share|improve this question
























      0












      0








      0








      My MVC application has views inside of project and there could be a case where there might be couple of views outside of project in a folder. I created a custom configuration to pull those views into project when I use custom configuration but not pull them in either build or release configuration.
      This is my custom configuration:



       <ItemGroup>
      <Content Include="......Outside_FolderWeb_App***.*" Exclude="..Outside_FolderWeb_App***.cs" Condition=" '$(Configuration)' == 'Custom_Configuration' ">
      <Link>Outside_Folder%(RecursiveDir)%(Filename)%(Extension)</Link>
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      </Content>
      </ItemGroup>
      <ItemGroup>
      <Compile Include="......Outside_FolderWeb_App***.cs" Condition=" '$(Configuration)' == 'Custom_Configuration' ">
      <Link>Outside_Folder%(RecursiveDir)%(Filename)%(Extension)</Link>
      </Compile>
      </ItemGroup>
      <PropertyGroup>
      <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
      <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)MicrosoftVisualStudiov$(VisualStudioVersion)</VSToolsPath>
      </PropertyGroup>
      <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Custom_Configuration|AnyCPU'">
      <OutputPath>bin</OutputPath>
      <DebugType>full</DebugType>
      <DebugSymbols>true</DebugSymbols>
      </PropertyGroup>


      Web_App is my main project while, Outside_Folder is one level outside of the project. When I run project in local it pulls views from that folder. But when I publish it with the same configuration, I get the error:



      error “System.Web.HttpException file has not been pre-compiled, and cannot be requested



      Do I need to do anything extra for this to work even in publish package?










      share|improve this question














      My MVC application has views inside of project and there could be a case where there might be couple of views outside of project in a folder. I created a custom configuration to pull those views into project when I use custom configuration but not pull them in either build or release configuration.
      This is my custom configuration:



       <ItemGroup>
      <Content Include="......Outside_FolderWeb_App***.*" Exclude="..Outside_FolderWeb_App***.cs" Condition=" '$(Configuration)' == 'Custom_Configuration' ">
      <Link>Outside_Folder%(RecursiveDir)%(Filename)%(Extension)</Link>
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      </Content>
      </ItemGroup>
      <ItemGroup>
      <Compile Include="......Outside_FolderWeb_App***.cs" Condition=" '$(Configuration)' == 'Custom_Configuration' ">
      <Link>Outside_Folder%(RecursiveDir)%(Filename)%(Extension)</Link>
      </Compile>
      </ItemGroup>
      <PropertyGroup>
      <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
      <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)MicrosoftVisualStudiov$(VisualStudioVersion)</VSToolsPath>
      </PropertyGroup>
      <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Custom_Configuration|AnyCPU'">
      <OutputPath>bin</OutputPath>
      <DebugType>full</DebugType>
      <DebugSymbols>true</DebugSymbols>
      </PropertyGroup>


      Web_App is my main project while, Outside_Folder is one level outside of the project. When I run project in local it pulls views from that folder. But when I publish it with the same configuration, I get the error:



      error “System.Web.HttpException file has not been pre-compiled, and cannot be requested



      Do I need to do anything extra for this to work even in publish package?







      asp.net-mvc visual-studio publish buildconfiguration






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 8 at 13:17









      vamsikrishna mannamvamsikrishna mannam

      307




      307






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55064051%2fasp-net-mvc-custom-build-configuration-not-pulling-views-outside-of-project-to-b%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55064051%2fasp-net-mvc-custom-build-configuration-not-pulling-views-outside-of-project-to-b%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

          Алба-Юлія

          Захаров Федір Захарович