Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Resx files are included without honoring exclude #898

Closed
Tragetaschen opened this issue Nov 14, 2014 · 5 comments
Closed

Resx files are included without honoring exclude #898

Tragetaschen opened this issue Nov 14, 2014 · 5 comments
Assignees
Milestone

Comments

@Tragetaschen
Copy link

Steps to reproduce:

  • Create a vnext class library
  • Add "bin" to both exclude and packExclude
  • Add a *.resx file
  • kpm build (works)
  • kpm pack (works)
  • kpm build

error CS1508: Resource identifier 'ClassLibrary1.Resources.resources' has already been used in this assembly

This is due to the resx file being copied into the bin folder by pack and then being picked up by ResxResourceProvider.GetResources

@muratg
Copy link
Contributor

muratg commented Dec 4, 2014

@ChengTian Can you have a look?

@ChengTian
Copy link
Contributor

Verified. ResxResourceProvider.GetResources doesn't honor exclude pattern.

https://github.com/aspnet/KRuntime/blob/dev/src/Microsoft.Framework.Runtime.Roslyn/ResxResourceProvider.cs#L19

@ChengTian
Copy link
Contributor

@troydai , do you have time to look at this issue? I guess we can fix it with your nice file globbing library 😄

@muratg muratg assigned troydai and unassigned ChengTian Mar 20, 2015
@muratg muratg modified the milestones: 1.0.0-beta5, 1.0.0-beta4 Mar 23, 2015
@troydai
Copy link
Contributor

troydai commented Mar 23, 2015

I'm assigning this issue to @victorhurdugaci. The code in question will be removed eventually, and it deals with code searching incorrectly. Today the ProjectFilesCollection already returns the correct set of resources file. @victorhurdugaci will begin using it in the upcoming changes. Therefore the bug will be fixed naturally in the process.

/cc @muratg

@victorhurdugaci
Copy link
Contributor

This is fixed, not sure why GitHub didn't resolve it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants